[Bug c++/114275] using std::thread within a templated function in a module fails to compile
nshead at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 8 03:15:14 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114275
Nathaniel Shead <nshead at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |nshead at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-03-08
--- Comment #2 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Minimised:
// m.cpp
module;
template <typename... _Elements> struct T;
template <typename H> struct T<H> {
template <typename...> friend struct T;
};
export module M;
export template <typename=void> void fun() { T<int> t; }
// main.cpp
import M;
int main() { fun(); }
More information about the Gcc-bugs
mailing list