]> granicus.if.org Git - clang/commit
When we know that we are parsing a class-name, implicitly construct a
authorDouglas Gregor <dgregor@apple.com>
Wed, 26 Aug 2009 18:27:52 +0000 (18:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 26 Aug 2009 18:27:52 +0000 (18:27 +0000)
commit42c39f39184c5ce9d7f489e5dcb7eec770728a9a
tree8b08d164d5ed39d1c44a77b26f63963274bf98ac
parent8f28f99019e86ae2841d17668811c6a94f5c44f8
When we know that we are parsing a class-name, implicitly construct a
TypenameType if getTypeName is looking at a member of an unknown
specialization. This allows us to properly parse class templates that
derived from type that could only otherwise be described by a typename type,
e.g.,

  template<class T> struct X {};
  template<typename T> struct Y : public X<T>::X { };

Fixes PR4381.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80123 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Action.h
lib/Parse/MinimalAction.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
test/SemaTemplate/dependent-base-member-init.cpp