Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 17 Apr 2017 18:28:58 +0300 (MSK)
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
Subject: Re: superfluous space char in marco

On Mon, 17 Apr 2017, Rich Felker wrote:
> This is odd and looks like a gcc bug. Preprocessor macros definitions
> are sequences of PP tokens, not literal code strings, meaning that
> whitespace is irrelevant as long as the resulting sequence of PP
> tokens remains the same; it's a matching definition not a
> redefinition.

No, according to C11 6.10.3 p1 presence of whitespace is significant (its
contents are not), and 6.10.3.5 example 6 corroborates that.  GCC, Clang,
ICC and MSVC on Godbolt all agree with that.

Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.