Don't handle #pragma in cp_lexer_peek_token

David Edelsohn dje@watson.ibm.com
Wed Sep 22 17:30:00 GMT 2004


>>>>> Matt Austern writes:

Matt> Tracking this down might be annoying, though.  I don't know if we have 
Matt> any AIX systems around here, and so far I haven't heard of this bug 
Matt> showing up on any non-AIX systems.  I'll ask around.  In the mean time, 
Matt> are you able to come up with a small test case?  Preferably one that 
Matt> doesn't really use a system header, of course, but a fake header marked 
Matt> with "#pragma GCC system_header" and containing a single declaration 
Matt> that illustrates whatever problem you're seeing.

	I am not sure that it is related to the pragma, but somehow
related to whatever knowledge GCC has about implicit "C" directories.

g++.old-deja/g++.robertl/eb66.C fails due to __assert, and it includes
<cassert>, which uses the pragma.

g++.old-deja/g++.benjamin/15351.C fails due to __assert, and it includes
<assert.h> directly.

	Which preprocessed file do either of you want?

David



More information about the Gcc-patches mailing list