Skip to content

Commit ad94d6a

Browse files
committed
Remove unnecessary parameter.
1 parent 76f9e6d commit ad94d6a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/parse.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)