summaryrefslogtreecommitdiffstats
path: root/test/CXX/temp/temp.deduct.guide/p1.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-02-08 01:16:55 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-02-08 01:16:55 +0000
commit50aef85f74be35bc3b5fd09c62fcdc166f0bdae2 (patch)
treece36e27b3ab6648ea4e1743dd78089afb37ffda9 /test/CXX/temp/temp.deduct.guide/p1.cpp
parent1680a15795363624f5e7c9e3469a52dca48dcc7e (diff)
Fix constructor declarator detection for the case when the name is followed by
an attribute-specifier-seq. (Also fixes the same problem for deduction-guides.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/temp/temp.deduct.guide/p1.cpp')
-rw-r--r--test/CXX/temp/temp.deduct.guide/p1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/temp/temp.deduct.guide/p1.cpp b/test/CXX/temp/temp.deduct.guide/p1.cpp
index 5c27cfe96c..fb0a26a5c7 100644
--- a/test/CXX/temp/temp.deduct.guide/p1.cpp
+++ b/test/CXX/temp/temp.deduct.guide/p1.cpp
@@ -31,7 +31,7 @@ A(int(&)[5])[3] -> A<int>;
// (Pending DR) attributes and parens around the declarator-id are OK.
[[deprecated]] A(int(&)[6]) [[]] -> A<int> [[]];
-A [[]] (int(&)[7]) -> A<int>; // FIXME: expected-error 2{{expected}} expected-note {{to match}}
+A [[]] (int(&)[7]) -> A<int>;
(A)(int(&)[8]) -> A<int>;
// ... but the trailing-return-type is part of the function-declarator as normal