summaryrefslogtreecommitdiff
path: root/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
commita2762918ecc636c9af207ce2a9ce705edad2a444 (patch)
tree3d2bffe37a7fd217dc4ae814fd3d6b2f215c3d4f /test/SemaTemplate/instantiate-function-1.cpp
parent3604160c2c791e043d22ed6d09b7835fc06c4e68 (diff)
downloadclang-a2762918ecc636c9af207ce2a9ce705edad2a444.tar.gz
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) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--test/SemaTemplate/instantiate-function-1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp
index 144c630fce..7b4c53cfe0 100644
--- a/test/SemaTemplate/instantiate-function-1.cpp
+++ b/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 (...) {
}