https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105321
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Summary|"non-constant condition" |[9/10/11/12 Regression] |issued for function |"non-constant condition" |containing a |issued for function |short-circuited unevaluated |containing a |non-constant expression |short-circuited unevaluated | |non-constant expression Target Milestone|--- |9.5 --- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- It's a regression, this worked with GCC 4.9.4. So the fix should be suitable for GCC 12 still.