[Bug c++/92413] [temp.explicit] Explicit template instantiations should not define member functions that are not defined at the point of instantiation
dblaikie at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Feb 4 23:57:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92413
--- Comment #3 from David Blaikie <dblaikie at gmail dot com> ---
Ah, miswrote the example, here:
template <class T> struct C {void foo();};
template struct C<int>;
template <class T> void C<T>::foo() {
static_assert(sizeof(T) == 1);
}
Here's a godbolt comparing Clang trunk and GCC trunk:
https://godbolt.org/z/6jP_QM
More information about the Gcc-bugs
mailing list