Crashes on gcc trunk. See https://gcc.godbolt.org/z/EErMqe44o ``` template <template <typename> typename T> struct K {}; template <typename U, int...N> class Foo {}; template <template<typename> typename TTP, int...N> using Bar = Foo<K<TTP>, N...>; template <class T> class Container {}; Bar t = Foo<K<Container>, 1>(); ```
Looks like P114377 dublicate. Here is same problem with missed TEMPLATE_DECL in condition: parm gets nullptr from DECL_INITIAL, instead of getting TEMPLATE_TEMPLATE_PARM from TREE_TYPE. https://gcc.gnu.org/pipermail/gcc-patches/2024-March/648338.html
Great, let's close this as a dup then. *** This bug has been marked as a duplicate of bug 114377 ***