diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-11-25 00:35:20 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-11-25 00:35:20 +0000 |
commit | ef4f4568669e0c6652e9bd2a0bf28f6fc837b034 (patch) | |
tree | c3fc72920d8e4ea89110af5edda6db85a07937ba /clang/test/SemaCXX/destructor.cpp | |
parent | 19bda8af16bf96e4415ecb4ade76e49ea3d6b66a (diff) | |
download | bcm5719-llvm-ef4f4568669e0c6652e9bd2a0bf28f6fc837b034.tar.gz bcm5719-llvm-ef4f4568669e0c6652e9bd2a0bf28f6fc837b034.zip |
Tie DefineVTablesUsed() in with recursive function instantiation so that we emit
a useful template instantiation stack. Fixes PR8640.
This also causes a slight change to where the "instantianted from" note shows up
in truly esoteric cases (see the change to test/SemaCXX/destructor.cpp), but
that isn't directly the fault of this patch.
llvm-svn: 120135
Diffstat (limited to 'clang/test/SemaCXX/destructor.cpp')
-rw-r--r-- | clang/test/SemaCXX/destructor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/destructor.cpp b/clang/test/SemaCXX/destructor.cpp index a33aa5e05e5..72268bd43ac 100644 --- a/clang/test/SemaCXX/destructor.cpp +++ b/clang/test/SemaCXX/destructor.cpp @@ -100,11 +100,11 @@ namespace test6 { T::deleteIt(p); // expected-error {{type 'int' cannot be used prior to '::'}} } - virtual ~A() {} // expected-note {{in instantiation of member function 'test6::A<int>::operator delete' requested here}} + virtual ~A() {} }; - class B : A<int> { B(); }; - B::B() {} // expected-note {{in instantiation of member function 'test6::A<int>::~A' requested here}} + class B : A<int> { B(); }; // expected-note {{in instantiation of member function 'test6::A<int>::operator delete' requested here}} + B::B() {} } // Make sure classes are marked invalid when they have invalid |