Skip to content

Commit 62e7cf9

Browse files
authored
1347 Fixed parse issue confusing bitwise operation with address of. (#1360)
1 parent 2884b34 commit 62e7cf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/parse.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9337,7 +9337,8 @@ class parser
93379337
{
93389338
auto& type = std::get<declaration_node::an_object>(n->type);
93399339
// object initialized by the address of the curr() object
9340-
if (peek(1)->type() == lexeme::Ampersand)
9340+
if (peek(1)->type() == lexeme::Ampersand
9341+
&& (!peek(2) || peek(2)->type() == lexeme::Semicolon))
93419342
{
93429343
type->address_of = &curr();
93439344
}

0 commit comments

Comments
 (0)