From bef6cd8b4325de6d05876260fe7c65442eff018d Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 18 Sep 2014 00:12:09 +0000 Subject: Skip parens when detecting whether we're instantiating a function declaration. llvm-svn: 217997 --- clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test') diff --git a/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp b/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp index ae10399b9ad..f62ef61758a 100644 --- a/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp +++ b/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp @@ -58,6 +58,13 @@ namespace dr1330_example { S().f(); // ok S().f(); // expected-note {{instantiation of exception spec}} } + + template + struct U { + void f() noexcept(T::error); + void (g)() noexcept(T::error); + }; + U uint; // ok } namespace core_19754_example { -- cgit v1.2.3