strange handling of invalid pre-processor directives
Thomas R. Truscott
trt@cs.duke.edu
Fri Apr 16 15:51:00 GMT 2004
/*
* This file compiles without complaint,
* despite the "elsewhere" and "elifndef" preprocessor directives.
* I think there should be a diagnostic.
* And/or gcc could support elifdef and elifndef
* as extensions to the pre-processor language.
*/
#if 0
#error surprise
#elsewhere
#error elsewhere??
#endif
#ifdef this
#error this
#elifndef that
#error not that
#endif
More information about the Gcc-bugs
mailing list