[PATCH] D91913: Suppress non-conforming GNU paste extension in all standard-conforming modes

Harald van Dijk via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 25 09:16:26 PST 2021


hvdijk added a comment.

In D91913#2520244 <https://reviews.llvm.org/D91913#2520244>, @dmajor wrote:

> We have a downstream build break due to this commit. One of our files has some convoluted arg-counting logic that now returns a different count, which does not match gcc: https://godbolt.org/z/W8caMr (Note: At time of writing, the clang trunk on godbolt doesn't yet have this change.)

I get `int nArgs = 1;` with GCC and with clang (with this change) in `-std=c++11` mode, I get `int nArgs = 0;` with GCC and with clang (with this change) in `-std=gnu++11` mode and in default mode. Which command line options are needed to get output where GCC and clang differ?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91913/new/

https://reviews.llvm.org/D91913



More information about the cfe-commits mailing list