Opened 4 years ago

#157 new defect

Initializing functions

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


The initializer is parsed but never used and no error given.

struct S { int i; };
int f() = 3;
void ?{}( S & ) = delete;
void ^?{}( S & ) = delete + 3;

Compiles but the initializers are ignored rather than giving an error that the function cannot be initialized unless it is a function pointer.

Change History (0)

Note: See TracTickets for help on using tickets.