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
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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 ` redi at gcc dot gnu.org
2020-12-16 13:37 ` cvs-commit at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 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
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2020-12-16
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-16 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:ab9bd93271061f436c10e35e261ecb73e2108ccc
commit r11-6139-gab9bd93271061f436c10e35e261ecb73e2108ccc
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 16 13:37:17 2020 +0000
libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR
98319]
Currently the <experimental/random>, <experimental/source_location> and
<experimental/utility> headers can be included in C++98 and C++11 modes,
but gives errors. With this change they can be included, but define
nothing.
libstdc++-v3/ChangeLog:
PR libstdc++/98319
* include/experimental/random: Only define contents for C++14
and later.
* include/experimental/source_location: Likewise.
* include/experimental/utility: Likewise.
* testsuite/experimental/feat-lib-fund.cc: Include all LFTS
headers that are present. Allow test to run for all modes.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-16 13:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed on trunk so far.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (2 preceding siblings ...)
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
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-29 20:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:564e5b6ce002608f461d4275c126d8179ef806c6
commit r10-9578-g564e5b6ce002608f461d4275c126d8179ef806c6
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 16 13:37:17 2020 +0000
libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR
98319]
Currently the <experimental/random>, <experimental/source_location> and
<experimental/utility> headers can be included in C++98 and C++11 modes,
but gives errors. With this change they can be included, but define
nothing.
libstdc++-v3/ChangeLog:
PR libstdc++/98319
* include/experimental/random: Only define contents for C++14
and later.
* include/experimental/source_location: Likewise.
* include/experimental/utility: Likewise.
* testsuite/experimental/feat-lib-fund.cc: Include all LFTS
headers that are present. Allow test to run for all modes.
(cherry picked from commit ab9bd93271061f436c10e35e261ecb73e2108ccc)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (3 preceding siblings ...)
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
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2021-03-29 20:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And for 10.3 as well.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (4 preceding siblings ...)
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
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-19 9:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:9736d20a85a20339417e1aafeae4d9a0a73c52ae
commit r9-9359-g9736d20a85a20339417e1aafeae4d9a0a73c52ae
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 16 13:37:17 2020 +0000
libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR
98319]
Currently the <experimental/random>, <experimental/source_location> and
<experimental/utility> headers can be included in C++98 and C++11 modes,
but gives errors. With this change they can be included, but define
nothing.
libstdc++-v3/ChangeLog:
PR libstdc++/98319
* include/experimental/memory_resource: Add system_header pragma
and only define contents for C++14 and later.
* include/experimental/random: Only define contents for C++14
and later.
* include/experimental/source_location: Likewise.
* include/experimental/utility: Likewise.
* testsuite/experimental/feat-lib-fund.cc: Include all LFTS
headers that are present. Allow test to run for all modes.
(cherry picked from commit ab9bd93271061f436c10e35e261ecb73e2108ccc)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (5 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-19 9:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:c79725c7b21838e89105381ceff5af05b3609d21
commit r8-10849-gc79725c7b21838e89105381ceff5af05b3609d21
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 16 13:37:17 2020 +0000
libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR
98319]
Currently the <experimental/random>, <experimental/source_location> and
<experimental/utility> headers can be included in C++98 and C++11 modes,
but gives errors. With this change they can be included, but define
nothing.
libstdc++-v3/ChangeLog:
PR libstdc++/98319
* include/experimental/memory_resource: Add system_header pragma
and only define contents for C++14 and later.
* include/experimental/random: Only define contents for C++14
and later.
* include/experimental/source_location: Likewise.
* include/experimental/utility: Likewise.
* testsuite/experimental/feat-lib-fund.cc: Include all LFTS
headers that are present. Allow test to run for all modes.
(cherry picked from commit ab9bd93271061f436c10e35e261ecb73e2108ccc)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (6 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2021-04-19 9:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 8.5 and 9.4 too.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/98319] LFTS headers give errors if included as C++11 or C++98
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
` (7 preceding siblings ...)
2021-04-19 9:39 ` redi at gcc dot gnu.org
@ 2021-09-11 14:29 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-11 14:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.5
^ 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).