Skip to content

Commit dee931d

Browse files
committed
1347 Fixed parse issue confusing bitwise operation with address of.
1 parent ec1f98a commit dee931d

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
@@ -9318,7 +9318,8 @@ class parser
93189318
{
93199319
auto& type = std::get<declaration_node::an_object>(n->type);
93209320
// object initialized by the address of the curr() object
9321-
if (peek(1)->type() == lexeme::Ampersand)
9321+
if (peek(1)->type() == lexeme::Ampersand
9322+
&& (!peek(2) || peek(2)->type() == lexeme::Semicolon))
93229323
{
93239324
type->address_of = &curr();
93249325
}

0 commit comments

Comments
 (0)