public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102350] New: __builtin_source_location not available in earlier language modes
@ 2021-09-15 15:09 pdimov at gmail dot com
  2021-09-15 16:39 ` [Bug c++/102350] " jakub at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: pdimov at gmail dot com @ 2021-09-15 15:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102350
           Summary: __builtin_source_location not available in earlier
                    language modes
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pdimov at gmail dot com
  Target Milestone: ---

Currently, `__builtin_source_location` requires (a) `<source_location>` to be
included and (b) -std=c++20. Are there good reasons for these restrictions? The
builtin would still be extremely valuable in earlier language modes.

Libraries that still support 03/11/14/17 (Boost.System, for instance) could
transparently supply source locations by using a default `void const* loc =
__builtin_source_location()` argument.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-09-16 11:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 15:09 [Bug c++/102350] New: __builtin_source_location not available in earlier language modes pdimov at gmail dot com
2021-09-15 16:39 ` [Bug c++/102350] " jakub at gcc dot gnu.org
2021-09-15 17:37 ` pdimov at gmail dot com
2021-09-15 19:49 ` redi at gcc dot gnu.org
2021-09-15 21:12 ` pdimov at gmail dot com
2021-09-16  9:38 ` redi at gcc dot gnu.org
2021-09-16  9:50 ` jakub at gcc dot gnu.org
2021-09-16 10:13 ` pdimov at gmail dot com
2021-09-16 10:15 ` pdimov at gmail dot com
2021-09-16 10:19 ` jakub at gcc dot gnu.org
2021-09-16 10:24 ` pdimov at gmail dot com
2021-09-16 10:41 ` jakub at gcc dot gnu.org
2021-09-16 10:50 ` redi at gcc dot gnu.org
2021-09-16 10:53 ` redi at gcc dot gnu.org
2021-09-16 10:53 ` jakub at gcc dot gnu.org
2021-09-16 10:59 ` pdimov at gmail dot com
2021-09-16 11:02 ` pdimov at gmail dot com
2021-09-16 11:11 ` jakub at gcc dot gnu.org
2021-09-16 11:34 ` pdimov at gmail dot com
2021-09-16 11:54 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).