We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2884b34 commit 62e7cf9Copy full SHA for 62e7cf9
source/parse.h
@@ -9337,7 +9337,8 @@ class parser
9337
{
9338
auto& type = std::get<declaration_node::an_object>(n->type);
9339
// object initialized by the address of the curr() object
9340
- if (peek(1)->type() == lexeme::Ampersand)
+ if (peek(1)->type() == lexeme::Ampersand
9341
+ && (!peek(2) || peek(2)->type() == lexeme::Semicolon))
9342
9343
type->address_of = &curr();
9344
}
0 commit comments