public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/98319] New: LFTS headers give errors if included as C++11 or C++98
@ 2020-12-16 12:25 redi at gcc dot gnu.org
  2020-12-16 12:25 ` [Bug libstdc++/98319] " redi at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-16 12:25 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98319
           Summary: LFTS headers give errors if included as C++11 or C++98
           Product: gcc
           Version: 10.2.1
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

For example:

/home/jwakely/gcc/11/include/c++/11.0.0/experimental/source_location: In static
member function ‘static constexpr
std::experimental::fundamentals_v2::source_location
std::experimental::fundamentals_v2::source_location::current(const char*, const
char*, int, int)’:
/home/jwakely/gcc/11/include/c++/11.0.0/experimental/source_location:63:5:
error: body of ‘constexpr’ function ‘static constexpr
std::experimental::fundamentals_v2::source_location
std::experimental::fundamentals_v2::source_location::current(const char*, const
char*, int, int)’ not a return-statement

It should be possible to include them and then test the feature test macro to
see if they are usable.

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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 12:25 [Bug libstdc++/98319] New: LFTS headers give errors if included as C++11 or C++98 redi at gcc dot gnu.org
2020-12-16 12:25 ` [Bug libstdc++/98319] " redi at gcc dot gnu.org
2020-12-16 13:37 ` cvs-commit at gcc dot gnu.org
2020-12-16 13:55 ` redi at gcc dot gnu.org
2021-03-29 20:02 ` cvs-commit at gcc dot gnu.org
2021-03-29 20:04 ` redi at gcc dot gnu.org
2021-04-19  9:31 ` cvs-commit at gcc dot gnu.org
2021-04-19  9:38 ` cvs-commit at gcc dot gnu.org
2021-04-19  9:39 ` redi at gcc dot gnu.org
2021-09-11 14:29 ` pinskia 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).