[Bug libstdc++/115797] [15 Regression] 'extern "C" { #include <math.h> }' fails with 'error: template with C linkage' since r15-1857-gde19b516edbf91
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 5 17:24:39 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115797
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2024-07-05
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=69386
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We have a test verifying that it works, 17_intro/headers/c++2011/linkage.cc
But it doesn't fail here because it's only run for -std=gnu++11 and <cmath>
only includes <type_traits> for C++17 an up.
More information about the Gcc-bugs
mailing list