On 09/20/2011 08:09 AM, Paolo Carlini wrote:
as I tried to analyze/explain in the audit trail, apparently we are
doing something bogus in grokdeclarator wrt unsigned __int128, which
leads to the latter being wrongly rejected with -pedantic-errors, at
variance with plain __int128 or __int128_t / __uint128_t for that
matter. Thus I prepared the below. Tested x86_64-linux.

Ok for mainline?

No, I think we want to complain about __int128 when -pedantic unless we're in a system header, as C does. The right fix is to move the __int128 code out of the if (unsigned_p || ...) block, and to suppress the pedwarn when in_system_header.

Jason

Reply via email to