[Bug c++/93383] ICE on accessing field of a structure which is non-type template parameter, -std=c++2a
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 18 15:04:42 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93383
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
template <typename A>
struct ctad_t {
A a;
};
template <ctad_t T>
struct myclass {
};
template <typename Something>
constexpr auto myobject = ctad_t {Something::value};
template <typename Something>
using thing = myclass<myobject<Something>>;
More information about the Gcc-bugs
mailing list