Opened 7 years ago
Last modified 7 years ago
#20 new defect
zero_t doesn't work well with default arguments
Reported by: | Thierry Delisle | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | cfa-cc |
Version: | 1.0 | Keywords: | zero_t default param |
Cc: |
Description (last modified by )
The following code does not compile :
struct foo { int i; }; void ?{}( foo & this, zero_t zero ) { this.i = zero; } extern void bar( foo this = 0 ); int main() { bar(); }
Note: See
TracTickets for help on using
tickets.