summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/implicit-exception-spec.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-05-02 01:29:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-05-02 01:29:43 +0000
commit38f7c7bca5469ed62ee4c309f7c2c528eb093b2e (patch)
treea135a410e53c45a06461f81e2d5767419ced3fb7 /clang/test/SemaCXX/implicit-exception-spec.cpp
parent4d77ceaa2218bbdaa5f44920a1c9c546a280d9e7 (diff)
downloadbcm5719-llvm-38f7c7bca5469ed62ee4c309f7c2c528eb093b2e.tar.gz
bcm5719-llvm-38f7c7bca5469ed62ee4c309f7c2c528eb093b2e.zip
Disable our non-standard delayed parsing of exception specifications. Delaying
the parsing of such things appears to be a conforming extension, but it breaks libstdc++4.7's std::pair. llvm-svn: 155975
Diffstat (limited to 'clang/test/SemaCXX/implicit-exception-spec.cpp')
-rw-r--r--clang/test/SemaCXX/implicit-exception-spec.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/implicit-exception-spec.cpp b/clang/test/SemaCXX/implicit-exception-spec.cpp
index f3a070a01f7..25316f8d51e 100644
--- a/clang/test/SemaCXX/implicit-exception-spec.cpp
+++ b/clang/test/SemaCXX/implicit-exception-spec.cpp
@@ -40,9 +40,12 @@ namespace InClassInitializers {
}
namespace ExceptionSpecification {
- struct Nested {
+ // A type is permitted to be used in a dynamic exception specification when it
+ // is still being defined, but isn't complete within such an exception
+ // specification.
+ struct Nested { // expected-note {{not complete}}
struct T {
- T() noexcept(!noexcept(Nested())); // expected-error{{exception specification is not available until end of class definition}}
+ T() noexcept(!noexcept(Nested())); // expected-error{{incomplete type}}
} t;
};
}
OpenPOWER on IntegriCloud