Opened 19 months ago

Last modified 16 months ago

#160 new defect

Constant 0p (NULL) does not work at the global declaration level

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

Description

int & q = *0p; // does not work
int main() {
    int  & q = *0p; // works
}

The reason the global usage fails is that 0p is a function call, but at the global level, this call must be wrapped into a constructor and it is not wrapped.

Other global function calls are wrapped correctly.

Change History (1)

comment:1 Changed 16 months ago by ajbeach

Duplicated in #171, which contains some other (possibly useful) information.

Note: See TracTickets for help on using tickets.