https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98343
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- namespace std { struct source_location { struct __impl { const char* _M_file_name; const char* _M_function_name; unsigned _M_line; unsigned _M_column; }; const __impl* _M_impl = nullptr; }; } const void *ptr = __builtin_source_location (); is enough.