summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constructor-initializer.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-21 00:49:51 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-21 00:49:51 +0000
commit7607fce11254436da15f30305a791de9755bedc7 (patch)
tree1982c8324bdf9336f646e06e524a9ff0b174e9d4 /clang/test/SemaCXX/constructor-initializer.cpp
parent2658ea9e907a9da7ed8efc2ac9c82c0790ef99be (diff)
downloadbcm5719-llvm-7607fce11254436da15f30305a791de9755bedc7.tar.gz
bcm5719-llvm-7607fce11254436da15f30305a791de9755bedc7.zip
Don't mark record decls invalid when one of its methods is invalid, PR18284.
Without this patch, record decls with invalid out-of-line method delcs would sometimes be marked invalid, but not always. With this patch, they are consistently never marked invalid. (The code to do this was added in http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100809/033154.html , but the test from that revision is still passing.) As far as I can tell, this was the only place where a class was marked invalid after its definition was complete. llvm-svn: 197848
Diffstat (limited to 'clang/test/SemaCXX/constructor-initializer.cpp')
-rw-r--r--clang/test/SemaCXX/constructor-initializer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/constructor-initializer.cpp b/clang/test/SemaCXX/constructor-initializer.cpp
index 17576328c11..697f718eabb 100644
--- a/clang/test/SemaCXX/constructor-initializer.cpp
+++ b/clang/test/SemaCXX/constructor-initializer.cpp
@@ -232,15 +232,14 @@ namespace PR7402 {
// <rdar://problem/8308215>: don't crash.
// Lots of questionable recovery here; errors can change.
namespace test3 {
- class A : public std::exception {}; // expected-error {{undeclared identifier}} expected-error {{expected class name}} expected-note 4 {{candidate}}
+ class A : public std::exception {}; // expected-error {{undeclared identifier}} expected-error {{expected class name}} expected-note 2 {{candidate}}
class B : public A {
public:
B(const String& s, int e=0) // expected-error {{unknown type name}}
: A(e), m_String(s) , m_ErrorStr(__null) {} // expected-error {{no matching constructor}} expected-error {{does not name}}
B(const B& e)
: A(e), m_String(e.m_String), m_ErrorStr(__null) { // expected-error {{does not name}} \
- // expected-error {{no member named 'm_String' in 'test3::B'}} \
- // expected-error {{no matching}}
+ // expected-error {{no member named 'm_String' in 'test3::B'}}
}
};
}
OpenPOWER on IntegriCloud