https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87012
Bug ID: 87012 Summary: [Regression] ICE in verify_unstripped_args_1 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /***************** BEGIN SOURCE *****************/ template<class T> using ref = T&; int x; template<template<class> class T, T<int>> struct X { }; struct Y : X<ref, x> { }; /****************** END SOURCE ******************/ <source>: In instantiation of 'struct X<ref, x>': <source>:9:12: required from here <source>:7:10: internal compiler error: in verify_unstripped_args_1, at cp/pt.c:1155 7 | struct X { }; | ^ Compiler returned: 1 Compiles fine with GCC 8.2 and Clang.