[Bug c++/104620] FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors)

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 26 23:01:51 GMT 2022


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

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Patrick Palka from comment #10)
> That'd work for finish_call_expr and build_new_method call since they're
> given the original arguments, but other callers e.g. build_new_op never see
> the original arguments, so we wouldn't be able to do fold_non_dependent_expr
> from there IIUC.  For build_new_op in particular, we'd have to instead
> fold_non_dependent_expr from _its_ callers, the build_x_* class of
> functions, I think..

Agreed.  Or possibly reorganize them to share the non-dep handling between them
better.


More information about the Gcc-bugs mailing list