summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/implicit-exception-spec.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-11-13 20:01:57 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-11-13 20:01:57 +0000
commit0b3a46247edbb6a058288234fb105f3607262603 (patch)
tree7683beb767d0846ecd0b2a84058e5afc9cb1fce2 /clang/test/SemaCXX/implicit-exception-spec.cpp
parentcc8d3b877400742377b09b6346b3e2fe6b27b4b4 (diff)
downloadbcm5719-llvm-0b3a46247edbb6a058288234fb105f3607262603.tar.gz
bcm5719-llvm-0b3a46247edbb6a058288234fb105f3607262603.zip
PR21437, final part of DR1330: delay-parsing of exception-specifications. This
is a re-commit of Doug's r154844 (modernized and updated to fit into current Clang). llvm-svn: 221918
Diffstat (limited to 'clang/test/SemaCXX/implicit-exception-spec.cpp')
-rw-r--r--clang/test/SemaCXX/implicit-exception-spec.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/clang/test/SemaCXX/implicit-exception-spec.cpp b/clang/test/SemaCXX/implicit-exception-spec.cpp
index 6864f29dae3..d9532580bd1 100644
--- a/clang/test/SemaCXX/implicit-exception-spec.cpp
+++ b/clang/test/SemaCXX/implicit-exception-spec.cpp
@@ -46,13 +46,12 @@ namespace InClassInitializers {
}
namespace ExceptionSpecification {
- // 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}}
+ // FIXME: This diagnostic is quite useless; we should indicate whose
+ // exception specification we were looking for and why.
+ struct Nested {
struct T {
- T() noexcept(!noexcept(Nested())); // expected-error{{incomplete type}}
- } t;
+ T() noexcept(!noexcept(Nested()));
+ } t; // expected-error{{exception specification is not available until end of class definition}}
};
}
OpenPOWER on IntegriCloud