https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105511
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |11.1.0, 11.3.0 Summary|Spurious warning: "expected |[12/13 Regression] Spurious |'template' keyword..." when |warning: "expected |lt and gt compare over |'template' keyword..." when |ternary |lt and gt compare over | |ternary Known to fail| |12.1.0 Target Milestone|--- |12.3 Ever confirmed|0 |1 Last reconfirmed| |2022-10-31 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. r12-6563-gb8ffa71e4271ae introduced the warning and enabled it by default. I say this is a regression since the warning is enabled by default and I can't even see how to avoid the warning.