[Bug c/63612] #pragma breaks if...else

q.gcc@rsn-tech.co.uk gcc-bugzilla@gcc.gnu.org
Tue Oct 21 23:20:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63612

--- Comment #3 from steveren <q.gcc@rsn-tech.co.uk> ---
That seems strange and counterintuitive to say the least.

FWIW, three other compilers I've got to hand - clang on Linux, Visual C++ and
an old Borland compiler on Windows - all do exactly as I'd expect, printing a
compile-time message without it affecting the code semantics. Open64 silently
ignores the pragma but the code still compiles and runs corectly.

Is there any public discussion of the rationale behind this design decision?
I've not been able to find anything.

Thanks.



More information about the Gcc-bugs mailing list