https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98802
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:96bff67d349b134dbcafc5c565ac3ce3a5cf544b commit r10-9345-g96bff67d349b134dbcafc5c565ac3ce3a5cf544b Author: Jason Merrill <ja...@redhat.com> Date: Wed Feb 3 21:56:59 2021 -0500 c++: No aggregate CTAD with explicit dguide [PR98802] In my implementation of P2082R1 I missed this piece: the aggregate deduction candidate is not generated if the class has user-written deduction guides. gcc/cp/ChangeLog: PR c++/98802 * pt.c (deduction_guides_for): Add any_dguides_p parm. (do_class_deduction): No aggregate guide if any_dguides_p. gcc/testsuite/ChangeLog: PR c++/98802 * g++.dg/cpp1z/class-deduction78.C: New test.