This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-11-03
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."