Opened 3 months ago
#288 new defect
Struct managed member declared with typeof does not support multiple levels of wrapping
Reported by: | mlbrooks | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description
A single level of wrapping is demonstrated successfully in the test raii/typeof-member.
Here is an analogous test that fails, where there are two levels of wrapping:
struct A { int x; }; void ?{}( A & ) { printf("custom A ctor called\n"); } void ^?{}( A & ) { printf("custom A dtor called\n"); } A foo( void ); struct mid { typeof( foo() ) a; }; struct outer { mid x; }; // here
Actual: unique best alternative includes deleted identifier in ... ?{}, at "here"
Expect: compile successfully
Note: See
TracTickets for help on using
tickets.