File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7266,8 +7266,7 @@ class parser
72667266 auto type_id (
72677267 bool allow_omitting_type_name = false ,
72687268 bool allow_constraint = false ,
7269- bool allow_function_type = false ,
7270- bool allow_qualified_function_type = true
7269+ bool allow_function_type = false
72717270 )
72727271 -> std::unique_ptr<type_id_node>
72737272 {
@@ -7341,11 +7340,13 @@ class parser
73417340 }
73427341 else if (std::unique_ptr<function_type_node> id = {};
73437342 (allow_function_type ||
7344- (allow_qualified_function_type &&
7345- !n->pc_qualifiers .empty () ))
7343+
7344+ !n->pc_qualifiers .empty ())
73467345 && (id = function_type ({})) != nullptr
73477346 )
73487347 {
7348+ // Note that we allow function types with qualifiers even if
7349+ // allow_function_type is false.
73497350 n->pos = id->position ();
73507351 n->id = std::move (id);
73517352 assert (n->id .index () == type_id_node::function);
You can’t perform that action at this time.
0 commit comments