Opened 20 months ago
#277 new defect
Constructors for nested types suffer from definition before use issues
Reported by: | caparson | Owned by: | |
---|---|---|---|
Priority: | major | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description
The following program does not call the appropriate constructor for A when constructing B so the print does not occur.
struct A {}; struct B { A a; }; void ?{}( A & this ) { printf("A ctor\n"); } int main() { B b; }
Note: See
TracTickets for help on using
tickets.