https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94691
Bug ID: 94691 Summary: ICE resolving deduction guide Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nathan at gcc dot gnu.org Target Milestone: --- Created attachment 48324 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48324&action=edit testcase This ICEs. Removing 'const' makes it work. devvm2772:52>./cc1plus -std=c++20 jc.ii void f() jc.ii:14:10: internal compiler error: in alias_ctad_tweaks, at cp/pt.c:28472 14 | X1 x1{ }; | ^ 0xcd5728 alias_ctad_tweaks ../../../src/gcc/cp/pt.c:28472 0xcd6438 deduction_guides_for ../../../src/gcc/cp/pt.c:28644