[Bug c++/102350] __builtin_source_location not available in earlier language modes

pdimov at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 16 10:59:23 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102350

--- Comment #15 from Peter Dimov <pdimov at gmail dot com> ---
(In reply to Jonathan Wakely from comment #13)
> It wouldn't work correctly in all cases, as Jakub points out, because
> std::source_location::current() is part of the magic.
> 
> And I'm not convinced we want/need to support those uses.

I think that users of __builtin_source_location will be content with the subset
of uses it supports. :-)


More information about the Gcc-bugs mailing list