Skip to content

Commit 27b3da6

Browse files
committed
[clang] Allow attributes in constructor argument list in pre-C++11
1 parent e9499e8 commit 27b3da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6007,7 +6007,7 @@ bool Parser::isConstructorDeclarator(bool IsUnqualified, bool DeductionGuide,
60076007

60086008
// A C++11 attribute here signals that we have a constructor, and is an
60096009
// attribute on the first constructor parameter.
6010-
if (getLangOpts().CPlusPlus11 &&
6010+
if (getLangOpts().CPlusPlus &&
60116011
isCXX11AttributeSpecifier(/*Disambiguate*/ false,
60126012
/*OuterMightBeMessageSend*/ true) !=
60136013
CXX11AttributeKind::NotAttributeSpecifier) {

0 commit comments

Comments
 (0)