You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the parser will incorrectly parse statements of a unary operator applied on a member variable of a struct as a binomial expression instead.
Example:
#include<iostream>struct{
int a;
int c[5];
}b;
intmain(){
b.a++;
b.c[0]++;
}
The expression b.a++ is parsed as a binary expression with operator . with terms b and a++ instead of a unary expression of ++ on b.a, which seems to be a mistake. The same goes for b.c[0]++.
Is it possible to issue a fix on this? Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for reporting and I am already looking into it. I can see the problem myself but the possible fix I could think of is not working. So, it looks like it will take some time.
It seems like the parser will incorrectly parse statements of a unary operator applied on a member variable of a struct as a binomial expression instead.
Example:
The expression
b.a++
is parsed as a binary expression with operator.
with termsb
anda++
instead of a unary expression of++
onb.a
, which seems to be a mistake. The same goes forb.c[0]++
.Is it possible to issue a fix on this? Thanks!
The text was updated successfully, but these errors were encountered: