This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-12-19


56. Redeclaring typedefs within classes

Section: 9.2.4  [dcl.typedef]     Status: TC1     Submitter: Steve Adamczyk     Date: 13 Oct 1998

Can a typedef redeclaration be done within a class?

    class X {
        typedef int I;
        typedef int I;
    };
See also 11.4 [class.mem] , Core issue 36, and Core issue 85.

Proposed Resolution (10/99): Change 9.2.4 [dcl.typedef] paragraph 2 from "In a given scope" to "In a given non-class scope."