This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/17539] preprocessor puts space after wide string prefix L.
- From: "neil at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2004 22:55:38 -0000
- Subject: [Bug preprocessor/17539] preprocessor puts space after wide string prefix L.
- References: <20040917204311.17539.anuj.goyal@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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