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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> Confirmed. This ICEs on the trunk (but I don't think it is a regression as
> the assert is a gcc_checking_assert).
> 
> The ICE:
> 
> <source>:12:28: internal compiler error: in comptypes, at cp/typeck.cc:1684
>    12 |   Y<Z<int,bool,char>,char>>::type x;
>       |                            ^~

I should note clang accepts the code.

Reply via email to