[Bug libstdc++/121919] ranges::shuffle and ranges::sample assume a uniform_random_bit_generator provides result_type

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121919 --- Comment #1 from Jonathan Wakely --- N.B. the uniform random bit generator requirements extend the concept by requiring result_type (and require that that type is not bool, which isn't required by the concept). std::uniform_int_distribution

[Bug libstdc++/121919] ranges::shuffle and ranges::sample assume a uniform_random_bit_generator provides result_type

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Target Milestone|--- |16.0 Ever confirmed|0 |1 Last reconfirmed||2025-09-11

[Bug libstdc++/121919] New: ranges::shuffle and ranges::sample assume a uniform_random_bit_generator provides result_type

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
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: --- The std::uniform_random_bit_generator concept does not require a

[Bug libstdc++/121913] ranges::rotate should use ranges::iter_move

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121913 Jonathan Wakely changed: What|Removed |Added Keywords||patch --- Comment #2 from Jonathan Wa

[Bug libstdc++/121890] Several algorithms do not use iterator's difference_type for arithmetic

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121890 --- Comment #2 from Jonathan Wakely --- updated patch: https://gcc.gnu.org/pipermail/gcc-patches/2025-September/695191.html

[Bug libstdc++/121917] [16 Regression] ranges::shuffle incorrectly requires its arguments to model sized_sentinel_for

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121917 Jonathan Wakely changed: What|Removed |Added Summary|ranges::shuffle incorrectly |[16 Regression] |re

[Bug libstdc++/121918] [C++26] optional> should be as large as function_ref

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121918 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2025-09-11 Severity|normal

[Bug libstdc++/121917] New: ranges::shuffle incorrectly requires its arguments to model sized_sentinel_for

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
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: --- #include #include #include struct non_default_sentinel_t { }; template bool

[Bug libstdc++/71945] Integer overflow in use counter of shared pointers

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71945 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/121148] Should use modular arithmetic for _Atomic_word

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121148 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/71945] Integer overflow in use counter of shared pointers

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71945 Bug 71945 depends on bug 121148, which changed state. Bug 121148 Summary: Should use modular arithmetic for _Atomic_word https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121148 What|Removed |Added --

[Bug libstdc++/121913] ranges::rotate should use ranges::iter_move

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121913 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug libstdc++/121782] Missing Mandates for operator() of std::boyer_moore_[horspool]_searcher

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121782 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |16.0 Status|NEW

[Bug libstdc++/121913] New: ranges::rotate should use ranges::iter_move

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- #include struct A { }; struct B { B() = default; B& operator=(const B&) = delete; B& operator=(const A&) cons

[Bug libstdc++/121912] std::search optimizations for bidirectional and random access iterators.

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121912 --- Comment #1 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > Even if haystack is not random access but is bidirectional, we can _still_ > optimize the algo. Every time we match an element from the needle we can > decre

[Bug libstdc++/121912] New: std::search optimizations for bidirectional and random access iterators.

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
: missed-optimization Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- Given std::search(haystack, haystack_end, needle, needle_end) we always do a linear

[Bug libstdc++/121905] New: std::rotate optimizations for POD types and random access iterators

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- For the __rotate overload taking random access iterators, check that this optimizes to memmove for contiguous iterators

[Bug libstdc++/121890] Several algorithms do not use iterator's difference_type for arithmetic

2025-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121890 Jonathan Wakely changed: What|Removed |Added Keywords||patch --- Comment #1 from Jonathan Wa

[Bug libstdc++/121890] New: Several algorithms do not use iterator's difference_type for arithmetic

2025-09-10 Thread redi at gcc dot gnu.org via Gcc-bugs
words: rejects-valid Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- #include #include namespace __gnu_test { // Ensure that the itera

[Bug libstdc++/121890] Several algorithms do not use iterator's difference_type for arithmetic

2025-09-10 Thread redi at gcc dot gnu.org via Gcc-bugs
||2025-09-10 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED

[Bug libstdc++/80676] [DR 2995] basic_stringbuf does not use initial capacity of SSO string

2025-09-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80676 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug c++/121871] False positive -Wdangling-reference for static classes

2025-09-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121871 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Jonath

[Bug c/121873] conversion of hex fp wrong

2025-09-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121873 --- Comment #1 from Jonathan Wakely --- How are you invoking the compiler? The assert doesn't fail for me on x86_64 Fedora 42.

[Bug web/120698] ./configure - unclear default for vtable-verify

2025-09-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120698 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |13.5 Status|ASSIGNED

[Bug c++/121855] Diagnostic for not-a-constant-expression has no information

2025-09-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121855 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Last reconfirmed|

[Bug libstdc++/121819] Shall std::is_integral/make_signed/make_unsigned always be defined for int128 ?

2025-09-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121819 --- Comment #3 from Jonathan Wakely --- (In reply to Romain Geissler from comment #0) > Would it make sense to remove the "&& defined __STRICT_ANSI__" part on > libstdc++ side so that type_traits work for the __int128 extension even in > strict

[Bug libstdc++/121811] stdckdint.h fails to compile in C++26 mode in GCC 14

2025-09-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121811 --- Comment #16 from Jonathan Wakely --- That would allow this in C++: ckd_add(&i, 'a', true) But C++26 says that's ill-formed: Mandates: Each of the types type1, type2, and type3 is a cv-unqualified signed or unsigned integer type. Maybe

[Bug libstdc++/121811] stdckdint.h fails to compile in C++26 mode in GCC 14

2025-09-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121811 --- Comment #14 from Jonathan Wakely --- Andrew, what's the objection to GCC just putting #ifndef __cplusplus in our header? Do we have to make things harder for people?

[Bug libstdc++/121819] Shall std::is_integral/make_signed/make_unsigned always be defined for int128 ?

2025-09-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121819 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > That works be an ABI break, and require a new glibc. * That would be...

[Bug c++/121814] Optimization has changed the code behavior

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121814 --- Comment #1 from Jonathan Wakely --- = ==204691==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7b3d11a00058 at pc 0x7f3d14a4b2cf bp 0x7ffe75781ae0 sp 0x7ffe757812b0

[Bug c++/121814] Optimization has changed the code behavior

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121814 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > And __s += *c not __s += c; > > Don't you want to append single characters, not a char* that isn't even > null-terminated? of course the whole loop could b

[Bug c++/121814] Optimization has changed the code behavior

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121814 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > Also, stop using names like _UIntPtrType and __s, those are reserved names. See https://stackoverflow.com/q/228783/981959

[Bug c++/121814] Optimization has changed the code behavior

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121814 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRME

[Bug c++/121814] Optimization has changed the code behavior

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121814 --- Comment #2 from Jonathan Wakely --- for (auto c = __cs; c < __cs + __ilen; ++c) __s += c; Shouldn't that be __len not __ilen?

[Bug libstdc++/121811] stdckdint.h fails to compile in C++26 mode in GCC 14

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121811 --- Comment #10 from Jonathan Wakely --- On the other hand, if I'm going to go to all the trouble of adding a new header then I might as well just backport r15-8036-gd4c7de7dc925e7 and add the working header to gcc-14.

[Bug libstdc++/121811] stdckdint.h fails to compile in C++26 mode in GCC 14

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121811 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug libstdc++/121804] join_view::iterator::_M_get_inner should be noexcept

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121804 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/114795] internal compiler error: in finish_member_declaration after module import in gcc 14.0.1 snapshot

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114795 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |14.0

[Bug tree-optimization/99536] unexplained warning on "uninitialized value" in std::normal_distribution

2025-09-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99536 --- Comment #11 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #10) > Does it make sense to revert the libstdc++ > change once the fix goes in? I don't think so. Keeping the init seems preferable.

[Bug libstdc++/121097] hypot uses __promoted_t even when __cpp_fold_expressions is not defined

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121097 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |13.5 Resolution|---

[Bug libstdc++/121745] The return of get(pair<_Up, _Tp>&& __p) may be ill-formed

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121745 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/110853] [13 Regression] Bad interaction between deduction guide with decay and constraints (CTAD, std::pair and function lvalue)

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/94960] extern template prevents inlining of standard library objects

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94960 --- Comment #21 from Jonathan Wakely --- Very few things are explicitly instantiated. It's really only std::string, and iostreams. Do we need to aggressively inline iostreams? They make use of virtual functions and opaque APIs (like std::locale)

[Bug libstdc++/121789] std:uninitialized_move_n() and friends don't optimize to memcpy

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
||2025-09-04 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org --- Comment #1 from Jonathan Wakely --- (In reply to Avi Kivity from comment #0) > Likely the memcpyable detection web gets confused

[Bug libstdc++/121790] [C++23] Implement P3235R3, std::print more types faster with less memory

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121790 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gc

[Bug libstdc++/121790] New: [C++23] Implement P3235R3, std::print more types faster with less memory

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Blocks: 106749 Target Milestone: --- https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3235r3.html This was approved as a

[Bug libstdc++/121789] std:uninitialized_move_n() and friends don't optimize to memcpy

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121789 --- Comment #6 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > (In reply to Avi Kivity from comment #0) > > Likely the memcpyable detection web gets confused by the move_iterator > > Yes, I think that is the reason. II

[Bug libstdc++/94960] extern template prevents inlining of standard library objects

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94960 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug libstdc++/121789] std:uninitialized_move_n() and friends don't optimize to memcpy

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121789 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > If the user somehow gets their arguments wrong, we can either use memcpy to > read+write outside of bounds, or trap on __last < __first, or do nothing. To b

[Bug libstdc++/121789] std:uninitialized_move_n() and friends don't optimize to memcpy

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121789 --- Comment #4 from Jonathan Wakely --- (In reply to Avi Kivity from comment #2) > (testq/jle sequence) > > The jle itself is from libstdc++: Ah right. > I believe it's undefined to have __last not be reachable by incrementing > __first, so !

[Bug libstdc++/121782] Missing Mandates for operator() of std::boyer_moore_[horspool]_searcher

2025-09-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121782 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libstdc++/110853] [13/14/15 Regression] Bad interaction between deduction guide with decay and constraints (CTAD, std::pair and function lvalue)

2025-09-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 Jonathan Wakely changed: What|Removed |Added Summary|[13/14/15/16 Regression]|[13/14/15 Regression] Bad

[Bug libstdc++/121771] [13/14/15/16 Regression] std::tuple CTAD fails for lvalue reference to function type

2025-09-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121771 Jonathan Wakely changed: What|Removed |Added Known to fail||12.2.0, 13.1.0, 14.3.0,

[Bug libstdc++/121771] New: [13/14/15/16 Regression] std::tuple CTAD fails for lvalue reference to function type

2025-09-03 Thread redi at gcc dot gnu.org via Gcc-bugs
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: --- Split out from Bug 110853: #include void func() {} std::tuple t(func); std

[Bug libstdc++/121765] `std::formatter` specialization for user-defined type inheriting from `std::formatter` fails concept `std::formattable` check unexpectedly

2025-09-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121765 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug libstdc++/110853] [13/14/15/16 Regression] Bad interaction between deduction guide with decay and constraints (CTAD, std::pair and function lvalue)

2025-09-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 --- Comment #8 from Jonathan Wakely --- (In reply to Patrick Palka from comment #6) > (In reply to Jonathan Wakely from comment #5) > > This is a regression caused by the new concepts-based constructor > > constraints in gcc 12. > And the analog

[Bug libstdc++/121496] [14 Regression] 'class std::timed_mutex' has no member named '_M_clocklock' with -fsanitize=thread

2025-09-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121496 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/121374] wrong value std::numeric_limits<__float128>::max_digits10

2025-09-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121374 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/121761] New: [13/14/15/16 Regression] std::pair deduction guide doesn't decay functions in C++20 mode

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
IRMED 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: --- #include void func() {} std::pair p(func, 1); std::pair& r =

[Bug libstdc++/110853] [c++-concepts] Bad interaction between deduction guide with decay and constraints (CTAD, std::pair and function lvalue)

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 Jonathan Wakely changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment

[Bug libstdc++/110853] [13/14/15/16 Regression] Bad interaction between deduction guide with decay and constraints (CTAD, std::pair and function lvalue)

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
|1 Last reconfirmed||2025-09-02 Known to fail||11.5.0 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Summary|[c++-concepts] Bad |[13/14/15/16 Regression

[Bug libstdc++/121761] [13/14/15/16 Regression] std::pair deduction guide doesn't decay functions in C++20 mode

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121761 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIR

[Bug libstdc++/110853] [c++-concepts] Bad interaction between deduction guide with decay and constraints (CTAD, std::pair and function lvalue)

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 --- Comment #3 from Jonathan Wakely --- This should fix it: --- a/libstdc++-v3/include/bits/stl_pair.h +++ b/libstdc++-v3/include/bits/stl_pair.h @@ -445,7 +445,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Constructor accepting lvalues of

[Bug libstdc++/121761] [13/14/15/16 Regression] std::pair deduction guide doesn't decay functions in C++20 mode

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121761 Jonathan Wakely changed: What|Removed |Added Known to work||11.5.0 Known to fail|

[Bug libstdc++/121745] The return of get(pair<_Up, _Tp>&& __p) may be ill-formed

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121745 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |13.5

[Bug libgomp/121760] libgomp: Trying to map into device [0x7fffa34613f0..0x7fffa3461420) object when [0x7fffa34613d0..0x7fffa3461400) is already mapped

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121760 --- Comment #18 from Jonathan Wakely --- Please attach preprocessed source as requested at https://gcc.gnu.org/bugs That's more useful than a dozen separate files that need to be included correctly, which is why we ask for it in the bug reporti

[Bug tree-optimization/117639] Modified loop-split-1.C doesn't recognise non-escaping std::vector

2025-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117639 --- Comment #8 from Jonathan Wakely --- (In reply to Jan Hubicka from comment #1) > Does std::log need to set errno? Yes, it's the same log function as in C. So log((unsigned)0) sets ERANGE and log ((signed)-1) sets EDOM. But I would expect th

[Bug libstdc++/121745] The return of get(pair<_Up, _Tp>&& __p) may be ill-formed

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug libstdc++/121745] The return of get(pair<_Up, _Tp>&& __p) may be ill-formed

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121745 --- Comment #2 from Jonathan Wakely --- Oops the ones that take const pair&& need to use forward

[Bug libstdc++/121745] The return of get(pair<_Up, _Tp>&& __p) may be ill-formed

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121745 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug testsuite/121690] [13/14/15/16 regression] Regression for dg-output checks on macOS

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121690 Jonathan Wakely changed: What|Removed |Added Resolution|--- |MOVED Status|UNCONFIRMED

[Bug libstdc++/106749] Implement C++23 library features

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106749 Bug 106749 depends on bug 114298, which changed state. Bug 114298 Summary: std::lazy_split_view constructor is currently not explicit https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114298 What|Removed |Added

[Bug libstdc++/119744] [C++23] Implement P2711R1, Making multi-param constructors of views explicit

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119744 Jonathan Wakely changed: What|Removed |Added CC||michael.kenzel at gmail dot com --- C

[Bug libstdc++/121748] [C++26] Implement P2988R12, std::optional

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121748 --- Comment #1 from Jonathan Wakely --- Giuseppe has a WIP patch for this, which Tomasz might complete.

[Bug libstdc++/106852] Implement C++23 P2465R3 Standard Library Modules std and std.compat

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106852 --- Comment #10 from Jonathan Wakely --- Should we close this as fixed, or keep it open until the testsuite can import std?

[Bug libstdc++/121748] New: [C++26] Implement P2988R12, std::optional

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Blocks: 110339 Target Milestone: --- https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p2988r12.pdf Referenced Bugs: https://gcc.gnu.org/bugzilla

[Bug libstdc++/114298] std::lazy_split_view constructor is currently not explicit

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114298 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Target Milestone|---

[Bug libstdc++/121741] Using an abi_tag for libstdc++ hardening

2025-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121741 --- Comment #2 from Jonathan Wakely --- We can certainly use always_inline in some functions, but I don't think we want it for everything that contains a hardened assertion. So maybe we could use either always_inline or abi_tag on all hardened

[Bug middle-end/99299] Need a recoverable version of __builtin_trap()/__builtin_debugtrap

2025-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99299 --- Comment #13 from Jonathan Wakely --- N.B. std::breakpoint() doesn't necessarily need to be recoverable. (I've pushed an implementation of the C++ header to gcc trunk.)

[Bug c++/121720] [13/14/15/16 Regression] std::min_element is not optimized at -O2

2025-08-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121720 --- Comment #1 from Jonathan Wakely --- Possibly caused by r15-3986-g3e1bd6470e4deb but I'm not sure

[Bug libstdc++/119670] [C++26] Implement P2546R5, Debugging Support

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119670 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/110339] Implement C++26 library features

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110339 Bug 110339 depends on bug 119670, which changed state. Bug 119670 Summary: [C++26] Implement P2546R5, Debugging Support https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119670 What|Removed |Added --

[Bug c++/121705] [16 Regression] When using import std, formatting std::chrono::year_month_day will cause compilation failure

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121705 --- Comment #4 from Jonathan Wakely --- This does fix it, but probably shouldn't be needed: -- a/libstdc++-v3/src/c++23/std.cc.in +++ b/libstdc++-v3/src/c++23/std.cc.in @@ -3415,3 +3415,7 @@ export namespace std } using std::hash; } + +e

[Bug c++/121705] [16 Regression] When using import std, formatting std::chrono::year_month_day will cause compilation failure

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121705 --- Comment #3 from Jonathan Wakely --- Hmm, on the other hand, we probably shouldn't need to export that explicitly.

[Bug c++/121705] [16 Regression] When using import std, formatting std::chrono::year_month_day will cause compilation failure

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121705 --- Comment #2 from Jonathan Wakely --- Probably r16-1709-g4b3cefed1a0834

[Bug c++/121705] [16 Regression] When using import std, formatting std::chrono::year_month_day will cause compilation failure

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121705 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug libstdc++/121046] Asking is_constructible_v, NonTrivial*> is ill-formed

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121046 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/121685] Failure to vectorize because of failed invariant motion

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121685 --- Comment #9 from Jonathan Wakely --- (In reply to Richard Biener from comment #6) > So the actual testcase (from CPU 2017 leela) is more like the following where > IMO hoisting of the data start pointer should be OK since 'this' should be > a

[Bug tree-optimization/121685] Failure to vectorize because of failed invariant motion

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121685 Jonathan Wakely changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug tree-optimization/121685] Failure to vectorize because of failed invariant motion

2025-08-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121685 --- Comment #4 from Jonathan Wakely --- (In reply to Richard Biener from comment #3) > So even though m_mcowner cannot possibly be bound to nullptr it might still > bind to a released object? Likewise may it bind to an object of > insufficient

[Bug libstdc++/110352] [C++26] P2630R4 submdspan

2025-08-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110352 --- Comment #3 from Jonathan Wakely --- Also: Padded mdspan layouts https://wg21.link/p2642r6

[Bug libstdc++/119128] [C++26] Implement P1673R13 A free function linear algebra interface based on the BLAS

2025-08-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119128 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2025-08-27 Ever confirmed|0

[Bug testsuite/121690] [13/14/15/16 regression] Regression for dg-output checks on macOS

2025-08-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121690 --- Comment #9 from Jonathan Wakely --- (In reply to Sam James from comment #2) > (In reply to Andrew Pinski from comment #1) > > I remember hearing about some issue in this area before too. > > Two things come to mind: > 1) An issue NightStrik

[Bug c++/120611] Name of lambda member exposed

2025-08-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120611 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/121677] Lambda implementation leaks out to user code

2025-08-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121677 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/121671] Confusing compile error message with std::visit and std::format_string

2025-08-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121671 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Jonath

[Bug libstdc++/107792] Output of default contract violation handler could be improved

2025-08-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107792 --- Comment #6 from Jonathan Wakely --- Please open a new bug report for the regression, as this isn't likely to get any attention here. CC me and Arsen and maybe iains.

[Bug libstdc++/121374] wrong value std::numeric_limits<__float128>::max_digits10

2025-08-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121374 --- Comment #7 from Jonathan Wakely --- Yes, maybe I looked it up and forgot to include the implicit leading 1.

[Bug c++/121068] Placement new of array element is rejected at compile-time

2025-08-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068 --- Comment #19 from Jonathan Wakely --- I'm seeing a new libstdc++ testsuite failure since r16-3022-gbc42128330c0ea FAIL: 20_util/variant/102912.cc -std=gnu++20 (test for excess errors) FAIL: 20_util/variant/102912.cc -std=gnu++23 (test for

[Bug c++/91319] Designated initializer doesn't support direct-initialization

2025-08-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91319 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |14.0

  1   2   3   4   5   6   7   8   9   10   >