https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68052

--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Olivier Blin from comment #2)
> No, the difference that I observe is that, in this specific case involving a
> macro in system header, there is a warning in C, and none in C++.
> This has been discussed with Martin Sebor on the gcc-help mailing list.

What you observe is only a manifestation of something else. The reason for that
is that the warning for C is given at ", which is a token that does not come
from the system header, while the warning for C++ is given at ), which is a
token that comes from the system header, hence, the warning is suppressed. If
you move the "%lld" within the macro definition, you'll see the same behavior
for both (minus the column numbers).

But you can keep the bug reports separated if that pleases you, if makes not
difference on whether they will get fixed either way, it just makes less likely
that you will get notified if the bug gets eventually fixed through the other
report.

Reply via email to