This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/22042] stringification BUG
- From: "s__nakayama at infoseek dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2005 07:20:39 -0000
- Subject: [Bug preprocessor/22042] stringification BUG
- References: <20050613052744.22042.s__nakayama@infoseek.jp>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From s__nakayama at infoseek dot jp 2005-06-14 07:20 -------
(In reply to comment #1)
Hmm, it does't look the same.
// test code
#define S(X) S2(X)
#define S2(X) #X
#define TAB " " /* 0x09 */
main()
{
puts(S(S(TAB)));
}
// GCC 4.0.0 result
"\"\011\""
// GCC 2.95.3 result(expected result)
"\" \""
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22042