This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/3487: unrecognized token before #include points to wrong source
- To: 85908-quiet at bugs dot debian dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jb at cs dot wcu dot edu, nobody at gcc dot gnu dot org
- Subject: Re: c/3487: unrecognized token before #include points to wrong source
- From: neil at gcc dot gnu dot org
- Date: 2 Jul 2001 11:07:24 -0000
Synopsis: unrecognized token before #include points to wrong source
State-Changed-From-To: open->analyzed
State-Changed-By: neil
State-Changed-When: Mon Jul 2 04:07:24 2001
State-Changed-Why:
I'm far from convinced this is a bug, or even undesirable behaviour - the compiler reports its position when it finds a syntax error. In some weird cases, this happens to be in the header file.
In any case, the cause is the front end and not the preprocessor. I'll let a C front end maintainer decide.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3487&database=gcc