Opened 4 years ago

Closed 18 months ago

#26 closed defect (fixed)

Implicit conversion from zero_t do not work.

Reported by: pabuhr Owned by:
Priority: major Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description (last modified by Thierry Delisle)

struct foo;
void ?{}( foo *&, zero_t z ) {}
int fred() {
    foo * h;
    if (h) {} 
}

should convert to:

if (h != ?{}(temp, 0), temp ) { ... }

Instead converts to:

if ( ((int )(__h__P4sfoo_2!=((struct foo *)0))) ) {}

Change History (2)

comment:1 Changed 19 months ago by Thierry Delisle

Description: modified (diff)

comment:2 Changed 18 months ago by pabuhr

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.