File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
regression-tests/test-results Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
- cppfront compiler v0.2.1 Build 8812:1229
2
+ cppfront compiler v0.2.1 Build 8812:1231
3
3
Copyright(c) Herb Sutter All rights reserved
4
4
5
5
SPDX-License-Identifier: CC-BY-NC-ND-4.0
Original file line number Diff line number Diff line change 1
- "8812:1229 "
1
+ "8812:1231 "
Original file line number Diff line number Diff line change @@ -4731,7 +4731,7 @@ class parser
4731
4731
}
4732
4732
}
4733
4733
4734
- // G expression: // eliminated 'condition:' - just use 'expression:'
4734
+ // G expression: // eliminated 'condition:' - just use 'expression:'
4735
4735
// G assignment-expression
4736
4736
// GTODO try expression
4737
4737
// G
@@ -4972,6 +4972,7 @@ class parser
4972
4972
4973
4973
// G unqualified-id:
4974
4974
// G identifier
4975
+ // G keyword
4975
4976
// G template-id
4976
4977
// GTODO operator-function-id
4977
4978
// G
@@ -5168,7 +5169,7 @@ class parser
5168
5169
}
5169
5170
5170
5171
5171
- // G id-expression
5172
+ // G id-expression:
5172
5173
// G qualified-id
5173
5174
// G unqualified-id
5174
5175
// G
@@ -6013,6 +6014,11 @@ class parser
6013
6014
dir != passing_style::invalid
6014
6015
)
6015
6016
{
6017
+ if (is_template) {
6018
+ error (" a template parameter cannot have a passing style (it is always implicitly 'in')" );
6019
+ return {};
6020
+ }
6021
+
6016
6022
if (!modifier.empty ()) {
6017
6023
modifier += " " ;
6018
6024
modifier_plural = " s" ;
You can’t perform that action at this time.
0 commit comments