[Bug c++/105476] ICE in build_deduction_guide since r10-4719-g9b41ebbcdf9e3328

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 4 16:29:59 GMT 2022


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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
ICE-on-valid version:

template<class> struct Visitor_functor;

template<> struct Visitor_functor<int> {
  using type_t = int;
};

template<class T> struct Events {
  template<class Fn=T> struct Visitor {
    Visitor_functor<Fn>::type_t t;
  };
};

using ev_t = Events<int>;
ev_t::Visitor v = { {} };


More information about the Gcc-bugs mailing list