From 4238dc458ed9a048965af111b979fd51d288f22c Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 6 Sep 2015 18:36:24 +0000 Subject: Import clang 3.7.0 release (r246257). --- test/SemaTemplate/crash-unparsed-exception.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/SemaTemplate/crash-unparsed-exception.cpp (limited to 'test/SemaTemplate/crash-unparsed-exception.cpp') diff --git a/test/SemaTemplate/crash-unparsed-exception.cpp b/test/SemaTemplate/crash-unparsed-exception.cpp new file mode 100644 index 0000000..1226b35 --- /dev/null +++ b/test/SemaTemplate/crash-unparsed-exception.cpp @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s + +struct A { + virtual ~A(); +}; +template +struct B {}; +struct C { + template + struct D { + ~D() throw(); + }; + struct E : A { + D d; //expected-error{{exception specification is not available until end of class definition}} + }; + B b; //expected-note{{in instantiation of template class 'B' requested here}} +}; -- cgit v1.1