https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106214
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:06ef1583d68169d1a002f5e86189462bb748963c commit r14-578-g06ef1583d68169d1a002f5e86189462bb748963c Author: Patrick Palka <ppa...@redhat.com> Date: Mon May 8 09:03:35 2023 -0400 c++: list CTAD and resolve_nondeduced_context [PR106214] This extends the PR93107 fix, which made us do resolve_nondeduced_context on the elements of an initializer list during auto deduction, to happen for CTAD as well. PR c++/106214 PR c++/93107 gcc/cp/ChangeLog: * pt.cc (do_auto_deduction): Move up resolve_nondeduced_context calls to happen before do_class_deduction. Add some error_mark_node tests. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/class-deduction114.C: New test.