------- Comment #4 from pinskia at gcc dot gnu dot org  2006-05-24 06:37 -------
http://gcc.gnu.org/onlinedocs/cpp/Computed-Includes.html#Computed-Includes

If the line expands to a single string constant, the contents of that string
constant are the file to be included. CPP does not re-examine the string for
embedded quotes, but neither does it process backslash escapes in the string.
Therefore
     #define HEADER "a\"b"
     #include HEADER
looks for a file named a\"b. CPP searches for the file according to the rules
for double-quoted includes.

So in the second case it looks for a file called a"b and not a\"b.  This is not
a bug.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26897

Reply via email to