[Bug libstdc++/108258] std::ranges::begin() fails on zero sized std::array

2022-12-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108258

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |13.0
 Ever confirmed|0   |1
   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=104719
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2022-12-31

--- Comment #2 from Andrew Pinski  ---
(In reply to Michael Duggan from comment #1)
> Preprocessed source will be added once I've reduced it.  In the meantime,
> the non-preprocessed source in the comment should be enough to trigger the
> problem with the specified version of gcc.

No reason for the preprocessed source as the problem is in the headers of
libstdc++.

Looks like it was introduced by r13-113-gef8d5ac08b5e .

[Bug libstdc++/108258] std::ranges::begin() fails on zero sized std::array

2022-12-31 Thread mwd at md5i dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108258

--- Comment #1 from Michael Duggan  ---
Preprocessed source will be added once I've reduced it.  In the meantime, the
non-preprocessed source in the comment should be enough to trigger the problem
with the specified version of gcc.