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 ec1f98a commit dee931dCopy full SHA for dee931d
source/parse.h
@@ -9318,7 +9318,8 @@ class parser
9318
{
9319
auto& type = std::get<declaration_node::an_object>(n->type);
9320
// object initialized by the address of the curr() object
9321
- if (peek(1)->type() == lexeme::Ampersand)
+ if (peek(1)->type() == lexeme::Ampersand
9322
+ && (!peek(2) || peek(2)->type() == lexeme::Semicolon))
9323
9324
type->address_of = &curr();
9325
}
0 commit comments