[Bug c++/98881] [modules] internal compiler error: in tpl_parms_fini, at cp/module.cc:9933

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 29 19:36:43 GMT 2021


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

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Reduced testcase:

export module Expr;

template <typename T> class TBase {};

template<template <typename> typename TTpl>
class TBase<TTpl<int>>
{
public:
  template<template <typename> typename UTpl>
  void Foo (TBase<UTpl<int>> &rhs);
};

void Frob (TBase<int>&);


More information about the Gcc-bugs mailing list