From dee931dfe61b2bd783a077cce5094f9b217007de Mon Sep 17 00:00:00 2001 From: Mihai Boros Date: Sat, 1 Feb 2025 22:20:55 +0200 Subject: [PATCH] 1347 Fixed parse issue confusing bitwise operation with address of. --- source/parse.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/parse.h b/source/parse.h index 16c2a5d53..c650380e4 100644 --- a/source/parse.h +++ b/source/parse.h @@ -9318,7 +9318,8 @@ class parser { auto& type = std::get(n->type); // object initialized by the address of the curr() object - if (peek(1)->type() == lexeme::Ampersand) + if (peek(1)->type() == lexeme::Ampersand + && (!peek(2) || peek(2)->type() == lexeme::Semicolon)) { type->address_of = &curr(); }