https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108104
Bug ID: 108104 Summary: ICE in unify, at cp/pt.c:24333 with template partial specialization Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gawain.bolton at free dot fr Target Milestone: --- Created attachment 54091 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54091&action=edit ICE with template partial specialization - No issue if WITH_STATE is 0 i.e. if the State parameter is absent Please see attached file which causes an internal compiler error. Note that there is no issue if the "State" template argument is removed as can be shown if you set WITH_STATE to 0. No issue found with clang >= v13.0 ICE found with all versions of GCC I tried (from GCC v4.9.4 to GCC v12.2)