]> granicus.if.org Git - clang/commit
We may fail to map a declaration in a template to its instantiated
authorDouglas Gregor <dgregor@apple.com>
Sun, 6 Mar 2011 20:12:45 +0000 (20:12 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 6 Mar 2011 20:12:45 +0000 (20:12 +0000)
commiteff1dbec93999bfc5406eb861efd8add9de23633
tree28f0f4e75cbcbb27dceca1f2733b858e592aa3d5
parentf0594d8b64cf32c55dde7a49ba849e864446c92b
We may fail to map a declaration in a template to its instantiated
declaration because of interesting ordering dependencies while
instantiating a class template or member class thereof. Complain,
rather than asserting (+Asserts) or silently rejecting the code
(-Asserts).

Fixes the crash-on-invalid in PR8965.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127129 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-member-class.cpp