This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/3858: fails to parse #include HASHDEFINEDMACROFORPATH"filename"
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, vil at rccp dot tsukuba dot ac dot jp
- Subject: Re: preprocessor/3858: fails to parse #include HASHDEFINEDMACROFORPATH"filename"
- From: neil at gcc dot gnu dot org
- Date: 28 Jul 2001 21:23:04 -0000
Synopsis: fails to parse #include HASHDEFINEDMACROFORPATH"filename"
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Sat Jul 28 14:23:04 2001
State-Changed-Why:
Not a bug. String concatenation occurs in the compiler after the standard preprocessing stages. In other words, the preprocessor does not do string
concatenation.
2.95.2 doing so could be construed as a bug or an undocumented feature.
The evolution of GCC classifies it as a bug :-) It is certainly not portable.
As for no such file or directory, here it means "no such file" of course,
but that's Unix for you. Like CPP claimed, it ignored your final string
as an excess token, and tried to open the directory as a file.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3858&database=gcc