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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Hi Jakub. I thought it was simply matter of using location_of instead of
DECL_SOURCE_LOCATION as I did in other places in that patch set, but in fact it
doesn't work, in order to avoid the spurious warning a warning and '+' instead
of a locally computed location + warning_at seems really necessary. Certainly I
can revert the specific change of mine (would be line #633 and #634 in the
current decl.c) and align the C++ FE with the C FE, that fixes the regression
and I'm pretty sure would not introduce other wrt the status pre-r226234, but I
don't fully understand why that is necessary, there are interactions with the
handling of macros which I don't fully understand, at the moment. Let me know
if you want me to do that for now.

Reply via email to