This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/68118] C preprocessor inserts whitespace after macro parameter substitution
- From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Oct 2015 22:19:40 +0000
- Subject: [Bug preprocessor/68118] C preprocessor inserts whitespace after macro parameter substitution
- Auto-submitted: auto-generated
- References: <bug-68118-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68118
Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Not a bug; the textual output of the preprocessor is intended to be suitable
for relexing as C and producing the correct sequence of preprocessing tokens
from that relexing, which requires spaces to be inserted in some places. If
you stringize the result of the expansion, you will see that the string
produced does not have the extra space, in accordance with the C standard,
which defines textual output only to the extent that it is stringized.