[Bug c++/124394] [reflection] same extern "C" functions in different namespaces
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 9 11:52:39 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124394
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
extern "C" {
namespace N1 {
void f();
}
namespace N2 {
void f();
}
}
static_assert (&N1::f == &N2::f);
passes with clang++ and fails with g++.
More information about the Gcc-bugs
mailing list