https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100005
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Looking at clang, they have significantly more intrinsics than GCC implemented as macros (GCC typically only implements those that have to be macros at -O0 for immediates, while I can't find any particular pattern on why some clang intrinsics are macros and others inlines), but they do use static inline rather than extern inline __attribute__((gnu_inline)). So for some intrinsics you might be lucky and it will work, but for many others it won't work. Using wrappers, whether lambdas for C++ or something else, is IMNSHO the only portable way for the intrinsics if you want to take their addresses.