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 | d7bf93c190e62d7714827ba255393e143e2c9a81 (patch) | |
tree | 9724142ced24398a859fed521bcdc0ab7af9e559 /test/SemaTemplate | |
parent | a50ce325b1ddd2bcbbfc1082ac93f3861d0a3a3d (diff) | |
download | clang-d7bf93c190e62d7714827ba255393e143e2c9a81.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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate')
-rw-r--r-- | test/SemaTemplate/instantiate-function-1.cpp | 2 |
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 (...) { } |