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
#definefoo(x) x
#definebar foo
intmain(void) {
returnbar(bar(0));
}
This fails under cparser 8ec1a76 with warning "implicit declaration of function 'foo'" and linker error "undefined reference to `foo'".
It compiles correctly under GCC 10.2.0, Clang 10.0.1, MSVC 19.27.29111 and TinyCC 0.9.27. It also compiles correctly with cparser if you replace #define bar foo with #define bar(x) foo(x).
The text was updated successfully, but these errors were encountered:
This fails under cparser 8ec1a76 with warning "implicit declaration of function 'foo'" and linker error "undefined reference to `foo'".
It compiles correctly under GCC 10.2.0, Clang 10.0.1, MSVC 19.27.29111 and TinyCC 0.9.27. It also compiles correctly with cparser if you replace
#define bar foo
with#define bar(x) foo(x)
.The text was updated successfully, but these errors were encountered: