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

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> Shall constexpr.c handle NON_DEPENDENT_EXPR, or can that wrap expressions
> that really can't be constant expression evaluated?

r12-7264 made potential_constant_expression return false for NON_DEPENDENT_EXPR
since neither constexpr evaluation nor tsubst currently handle it, so for this
testcase we now avoid the bogus error that would have been emitted during ahead
of time evaluation of the consteval call.

Reply via email to