https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92668
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Summary|-Wtautological-compare |[9/10 Regression]
|warns for macros that |-Wtautological-compare
|expand to the same symbol |warns for macros that
| |expand to the same symbol,
| |inconsistent with C++
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisection points to r226242 when the warning option was introduced so it's not
a regression. The C++ front-end warns at that revision as well, but stopped
warning in 9.0 as of r267272: C++: more location wrapper nodes (PR c++/43064,
PR c++/43486). So what appears to be a "regression" is actually losing the
warning in C++. I think the fix should be a) to avoid the warning in C, and b)
ensure the warning is suppressed in C++ as a feature, not as an accident of the
location wrapper, and that it doesn't come back.