[Bug preprocessor/60570] expression in 'elif' directive mis-diagnosed as error when group will be skipped
moshansky at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 22 02:58:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60570
moshansky at hotmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |moshansky at hotmail dot com
--- Comment #4 from moshansky at hotmail dot com ---
Still present as of gcc version 4.8.4 20140526 (release)
[ARM/embedded-4_8-branch revision 211358] (GNU Tools for ARM Embedded
Processors).
Fails:
#if(1)
#pragma message "This Should Work"
#elif(1/0)
#pragma message "1/0 should not be attempted"
#endif
Workaround:
#if(1)
#pragma message "This Should Work"
#else
#elif(1/0)
#pragma message "1/0 should is not attempted"
#endif
#endif
More information about the Gcc-bugs
mailing list