Title
Redeclaration of member class
Status
tc1
Section
6.5.6 [basic.lookup.elab]
Submitter
Steve Adamczyk

Created on 1999-01-25.00:00:00 last changed 254 months ago

Messages

Date: 2000-10-15.00:00:00

Proposed resolution (10/00): Remove the line

        struct Data;                // OK: Redeclares nested Data

See also Core issue 36 and Core issue 56.

Date: 2022-11-20.07:54:16

In 6.5.6 [basic.lookup.elab] paragraph 3, there is the example

    struct Base {
        // ...
        struct Data { /* ... */ };  // Defines nested Data
        struct Data;                // OK: Redeclares nested Data
    };
The final redeclaration is invalid according to 11.4 [class.mem] paragraph 1 last sentence.

Proposed resolution (10/00): Remove the line

        struct Data;                // OK: Redeclares nested Data

See also Core issue 36 and Core issue 56.

History
Date User Action Args
2003-04-25 00:00:00adminsetstatus: dr -> tc1
2000-11-18 00:00:00adminsetmessages: + msg440
2000-11-18 00:00:00adminsetstatus: ready -> dr
2000-05-21 00:00:00adminsetstatus: drafting -> ready
2000-02-23 00:00:00adminsetstatus: open -> drafting
1999-01-25 00:00:00admincreate