]> granicus.if.org Git - clang/commit
A typename specifier can end up referring to a unresolved using
authorDouglas Gregor <dgregor@apple.com>
Thu, 9 Dec 2010 00:06:27 +0000 (00:06 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 9 Dec 2010 00:06:27 +0000 (00:06 +0000)
commitd95450421ee3b7cebfb18ce1312310d6c703431c
tree7d105be89d37352bcc3ee2b8fd9c0a668865b0db
parent9915539294a96eb931a4e17c802be73980ba98e0
A typename specifier can end up referring to a unresolved using
declaration that is a value in ill-formed code. Instead of crashing,
treat this as a dependent typename specifier and suggest that the
using add "typename" into the using declaration. Fixes <rdar://problem/8740998>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121322 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/typename-specifier-4.cpp