Open Wuerfel21 opened 3 years ago
I think this should be fixed now, thanks for bringing it up.
Aargh, it's not as simple as just typedef'ing the names, because this can lead to conflicts with other names :(. Re-opening for now, but I suspect this will become a "will not fix" (we don't claim full C++ compliance for flexcc anyway).
It is as simple as that, FlexC just doesn't handle type names conflicting with identifiers.
typedef int mytype;
int test(mytype mytype) {
return (int) mytype;
}
Then again, using the same name for type and identifier is like, terrible programming practice and I have no idea why C allows this.
Should work, but doesn't: