[Bug c++/95870] ICE(segmentation fault) in most_general_template(), in gcc/cp/pt.c
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 24 17:23:29 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95870
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reduced, but invalid:
template <typename> class a {
public:
a();
int b = [] { enum E {}; };
};
class c : a<int> {
c();
};
template <typename d> a<d>::a() = default;
c::c() {}
More information about the Gcc-bugs
mailing list