C preprocessor failure

Neil Booth NeilB@earthling.net
Sun May 14 15:59:00 GMT 2000


Thanks for your bug report.  It is not a GCC bug, but a bug in your
code; see below.

Stephen Olsen wrote:-

> > #ifdef DO_NOT_PROCESS
> > <input type=\"text\" name=\"designation\">vendor description
> >
> > #endif

You cannot put random text in a source file.  Regardless of the
setting of DO_NOT_PROCESS, the text in that block must be breakable
into preprocessing tokens.

The preprocessor does this, as follows:-

<
input
type
=
\
"

where the " starts a string but the string never terminates because
the other quotes are escaped.

Neil.



More information about the Gcc-bugs mailing list