This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/17539] preprocessor puts space after wide string prefix L.


------- Additional Comments From neil at gcc dot gnu dot org  2004-09-17 22:55 -------
GCC is correct and the other compilers could be considered wrong.  L and the
result of #x are two separate tokens; GCC ensures that the output preserves that
property.

A correct version of your macro

#define WIDE_STR(x) L ## x
#define VER(a) WIDE_STR (#a)

should work for all compilers.

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]