[Bug c++/87765] Internal compiler error: coerce_template_parms (8.2) or cxx_eval_constant_expression (trunk)

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 29 20:38:00 GMT 2020


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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
A short test by Daniel Kirchner:

struct X { int s(); };
template<int> using Y = void;
template<int> static constexpr void t(X x) { Y<x.s()> v; }


More information about the Gcc-bugs mailing list