From: Chandler Carruth Date: Mon, 8 Mar 2010 00:41:19 +0000 (+0000) Subject: Revert r97925, it only contained the test updates not the actual fix. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3604160c2c791e043d22ed6d09b7835fc06c4e68;p=clang Revert r97925, it only contained the test updates not the actual fix. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97926 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/exceptions.cpp b/test/SemaCXX/exceptions.cpp index ab37e3c644..924b48aad2 100644 --- a/test/SemaCXX/exceptions.cpp +++ b/test/SemaCXX/exceptions.cpp @@ -12,8 +12,8 @@ void trys() { } catch(float i) { } catch(void v) { // expected-error {{cannot catch incomplete type 'void'}} } catch(A a) { // expected-error {{cannot catch incomplete type 'struct A'}} - } catch(A *a) { // expected-warning {{pointer to incomplete type 'struct A'}} - } catch(A &a) { // expected-warning {{reference to incomplete type 'struct A'}} + } catch(A *a) { // expected-error {{cannot catch pointer to incomplete type 'struct A'}} + } catch(A &a) { // expected-error {{cannot catch reference to incomplete type 'struct A'}} } catch(Abstract) { // expected-error {{variable type 'Abstract' is an abstract class}} } catch(...) { int j = i; // expected-error {{use of undeclared identifier 'i'}} diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 7b4c53cfe0..144c630fce 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp @@ -194,7 +194,7 @@ template struct IndirectGoto0; // expected-note{{instantiation}} template struct TryCatch0 { void f() { try { - } catch (T t) { // expected-warning{{incomplete type}} \ + } catch (T t) { // expected-error{{incomplete type}} \ // expected-error{{abstract class}} } catch (...) { }