[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
Thu Nov 7 18:49:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92413
David Blaikie <dblaikie at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dblaikie at gmail dot com
--- Comment #1 from David Blaikie <dblaikie at gmail dot com> ---
>From the LLVM bug, I believe this code is valid C++ but GCC produces an error
for it:
template <class T> struct C {void foo();};
template struct C<int>;
template <class T> void C<T>::foo() {
static_assert(sizeof(int) == 1);
}
More information about the Gcc-bugs
mailing list