This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/17539] New: preprocessor puts space after wide string prefix L.
- From: "anuj dot goyal at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2004 20:43:14 -0000
- Subject: [Bug preprocessor/17539] New: preprocessor puts space after wide string prefix L.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
preprocessor puts space after wide string prefix. eg. L "8" instead of L"8"
which then causes compiler to bail.
This is pretty straightforward, other compilers (visual age, forte, aCC, etc.)
concatenate the way I except, maybe user error on my part?
$ cat w3.cpp
#include <cwchar>
#define VER(a) L#a
int main()
{
wchar_t buf[8] = VER(8);
return 0;
}
$ g++ -E w3.cpp >a.txt
$ tail a.txt
}
# 2 "w3.cpp" 2
int main()
{
wchar_t buf[8] = L "8"; // <-- shouldn't be space between L and "8"
return 0;
}
gcc -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man
--enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib
--enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.3 (SuSE Linux)
--
Summary: preprocessor puts space after wide string prefix L.
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anuj dot goyal at gmail dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: Linux anaclst06 2.6.5-7.104-default #1 Wed Jul 28
16:42:13 UTC 2
GCC host triplet: Linux anaclst06 2.6.5-7.104-default #1 Wed Jul 28
16:42:13 UTC 2
GCC target triplet: Linux anaclst06 2.6.5-7.104-default #1 Wed Jul 28
16:42:13 UTC 2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17539