summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-function-1.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-08 01:47:36 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-08 01:47:36 +0000
commit104ee00181f90735eaa945ac628d594e483edbcc (patch)
tree535a71adc1a987f8367468f76a7157bb33ed25ed /clang/test/SemaTemplate/instantiate-function-1.cpp
parent3681e58d8b61134d81be28ad19e89d2f54f38f19 (diff)
downloadbcm5719-llvm-104ee00181f90735eaa945ac628d594e483edbcc.tar.gz
bcm5719-llvm-104ee00181f90735eaa945ac628d594e483edbcc.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. (For real this time) llvm-svn: 97927
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-function-1.cpp2
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 (...) {
}
OpenPOWER on IntegriCloud