]> granicus.if.org Git - clang/commit
Allow redefinitions of typedef-names within class scope when the type
authorDouglas Gregor <dgregor@apple.com>
Mon, 11 Jan 2010 21:54:40 +0000 (21:54 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 11 Jan 2010 21:54:40 +0000 (21:54 +0000)
commit93dda720a6f5b67ea997c8d98414f90ec362b43c
treebdfac001452b44022af36ed3fe0b19831fe7fe3b
parent97fd83a8d827400afda3c5fba0840c1f10007239
Allow redefinitions of typedef-names within class scope when the type
they redefine is a class-name but not a typedef-name, per C++0x
[dcl.typedef]p4. The code in the test was valid C++98 and is valid
C++0x, but an unintended consequence of DR56 made it ill-formed in
C++03 (which we were luck enough to implement). Fixes PR5455.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93188 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.typedef/p4.cpp