diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-01-09 10:45:31 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-01-10 10:09:21 +0000 |
commit | b39f4333d18cc58b1a655c537a78fefe95b82609 (patch) | |
tree | 0515ba30fa8f71bc24cc69f752f17a932a45f0ed /gcc/fortran | |
parent | 0333892db367b2b97b1ab9d3702b16f3f9e92ec3 (diff) | |
download | gcc-b39f4333d18cc58b1a655c537a78fefe95b82609.zip gcc-b39f4333d18cc58b1a655c537a78fefe95b82609.tar.gz gcc-b39f4333d18cc58b1a655c537a78fefe95b82609.tar.bz2 |
libstdc++: Fix std::span constraint for sizeof(size_t) < sizeof(int) [PR108221]
The default constructor has a constraint that is always false if
arithmetic on size_t values promotes to int. Rewrite the constraint
exactly as written in the standard, which works correctly.
libstdc++-v3/ChangeLog:
PR libstdc++/108221
* include/std/span (span::span()): Un-simplify constraint to
work for size_t of lesser rank than int.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions