diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-07 23:28:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-07 23:28:27 +0000 |
commit | 254bba409557a721b294f0ce064fb3e7744fc394 (patch) | |
tree | 6e452b37f6a8dde2b55d0c05618b8a475e3be964 /clang/test/SemaTemplate/instantiate-function-1.cpp | |
parent | 281c486e1bf02b9354a3781d861cebfbf877a75e (diff) | |
download | bcm5719-llvm-254bba409557a721b294f0ce064fb3e7744fc394.tar.gz bcm5719-llvm-254bba409557a721b294f0ce064fb3e7744fc394.zip |
Downgrade errors when trying to catch a pointer or reference to
incomplete type to warnings; GCC (and EDG in GCC compatibility mode)
permit such handles. Fixes PR6527.
llvm-svn: 97925
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiate-function-1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp index 144c630fce5..7b4c53cfe0d 100644 --- a/clang/test/SemaTemplate/instantiate-function-1.cpp +++ b/clang/test/SemaTemplate/instantiate-function-1.cpp @@ -194,7 +194,7 @@ template struct IndirectGoto0<int>; // expected-note{{instantiation}} template<typename T> struct TryCatch0 { void f() { try { - } catch (T t) { // expected-error{{incomplete type}} \ + } catch (T t) { // expected-warning{{incomplete type}} \ // expected-error{{abstract class}} } catch (...) { } |