https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118516
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-01-16 Summary|Misleading error message |[12/13/14/15 Regression] |"call to non-'constexpr' |Misleading error message |function" when loop |"call to non-'constexpr' |variable is not declared |function" when loop | |variable is not declared Target Milestone|--- |12.5 Status|UNCONFIRMED |NEW Known to fail| |9.1.0 Known to work| |8.5.0 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Extracted testcase: ``` int foo(); int main() { for (int id = 0; i < foo(); ++id); } ```