diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-02-15 19:33:52 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-02-15 19:33:52 +0000 |
commit | 74f7d50f6a5b2f74bb63bedae2d32590b8f594ce (patch) | |
tree | de4af323c1622f239cbec188047ea74dd73c4017 /clang/test/SemaCXX/implicit-exception-spec.cpp | |
parent | 06b6812b5f0cb59507cc8ba30eada29c6c75d184 (diff) | |
download | bcm5719-llvm-74f7d50f6a5b2f74bb63bedae2d32590b8f594ce.tar.gz bcm5719-llvm-74f7d50f6a5b2f74bb63bedae2d32590b8f594ce.zip |
When overload resolution picks an implicitly-deleted special member
function, provide a specialized diagnostic that indicates the kind of
special member function (default constructor, copy assignment
operator, etc.) and that it was implicitly deleted. Add a hook where
we can provide more detailed information later.
llvm-svn: 150611
Diffstat (limited to 'clang/test/SemaCXX/implicit-exception-spec.cpp')
-rw-r--r-- | clang/test/SemaCXX/implicit-exception-spec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/implicit-exception-spec.cpp b/clang/test/SemaCXX/implicit-exception-spec.cpp index 559c3013f7e..f8ee76727e5 100644 --- a/clang/test/SemaCXX/implicit-exception-spec.cpp +++ b/clang/test/SemaCXX/implicit-exception-spec.cpp @@ -54,10 +54,9 @@ namespace ExceptionSpecification { // The same problem arises in delayed parsing of default arguments, // which clang does not yet support. namespace DefaultArgument { - // FIXME: this diagnostic is completely wrong. - struct Default { // expected-note {{explicitly marked deleted here}} + struct Default { // expected-note {{defined here}} struct T { - T(int = ExceptionIf<noexcept(Default())::f()); // expected-error {{call to deleted constructor}} + T(int = ExceptionIf<noexcept(Default())::f()); // expected-error {{call to implicitly-deleted default constructor}} } t; }; } |