[Bug c++/122088] include/c++/13.2.0/variant:1383:43: internal compiler error: Segmentation fault

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

[Bug c++/122105] Add fix-it hint for -Waddress warning about lambda that isn't invoked

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122105 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/98798] Custom operator new[] and delete[] is buggy for aligned class

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98798 --- Comment #10 from Jonathan Wakely --- ... and that has now been merged into the ABI document.

[Bug c++/122105] New: Add fix-it hint for -Waddress warning about lambda that isn't invoked

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
words: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- int main() { static_assert([] { return true; }); // oops } We get a correct warning

[Bug c++/122098] Unexpected access error for private member function template referenced from same class

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

[Bug middle-end/109224] Wmismatched-new-delete false positive with a templated operator new (common with coroutines)

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

[Bug c++/80151] Add a warning to catch implicit string to bool conversion (-Wstring-conversion)

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80151 --- Comment #12 from Jonathan Wakely --- If we had a clear description of the warning (when it should/shouldn't warn, whether it should be on or off by default, whether it should be part of an existing warning, or the -Wstring-conversion one prop

[Bug c++/98798] Custom operator new[] and delete[] is buggy for aligned class

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98798 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2024-03-14 00:00:00 |2025-9-30 --- Comment #9 from Jonathan

[Bug c++/80151] Add a warning to catch implicit string to bool conversion (-Wstring-conversion)

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80151 --- Comment #10 from Jonathan Wakely --- A godbolt link is not a clear explanation of what behaviour you want from a new warning. That shows precisely one case. Is that the only case that should warn? Again: If you want a new warning for those

[Bug middle-end/109224] Wmismatched-new-delete false positive with a templated operator new (common with coroutines)

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 --- Comment #9 from Jonathan Wakely --- This avoids the warning, but we should probably just suppress it in the testcase instead: --- a/libstdc++-v3/include/std/generator +++ b/libstdc++-v3/include/std/generator @@ -616,6 +616,7 @@ re

[Bug middle-end/103993] -Wismatched-new-delete due to difference in inlining decisions

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

[Bug middle-end/103993] -Wismatched-new-delete due to difference in inlining decisions

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103993 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #6) > This seems like another case that triggers in the libstdc++ testsuite, for > 23_containers/map/modifiers/insert/92300.cc > > > Similar to comment 4, this i

[Bug libstdc++/122099] ranges::sample requires std::uniform_random_bit_generator to have result_type

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

[Bug c++/80151] Add a warning to catch implicit string to bool conversion (-Wstring-conversion)

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80151 --- Comment #8 from Jonathan Wakely --- (In reply to Jonny Grant from comment #6) > (In reply to Jonathan Wakely from comment #5) > I think we've spoken about unsafe functions like strlen before, but I > appreciate your reply. There's a missing n

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

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

[Bug c++/80151] Add a warning to catch implicit string to bool conversion (-Wstring-conversion)

2025-09-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80151 --- Comment #5 from Jonathan Wakely --- (In reply to Jonny Grant from comment #4) > Could this bug cover warning when size_t is converted to bool? and int as > well. It's extremely common to do: if (strlen(str)) ... or: void copy(const X* fr

[Bug c++/116722] [12/13/14/15 Regression] ICE with constexpr template constructor and floating point value

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

[Bug c++/116722] [12/13/14/15 Regression] ICE with constexpr template constructor and floating point value

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116722 --- Comment #8 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #1) > Note GCC 11.4.0 didn't ICE but accepted the code. clang/MSVC/EDG all reject > the constexpr in a class with a virtual base class. > > Without a template GCC d

[Bug c++/117158] [12/13/14/15 Regression] ICE with array access inside a template with a base class since r10-3793-g1a37b6d9a7e57c

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117158 Jonathan Wakely changed: What|Removed |Added CC||qingren2hxb at gmail dot com --- Comm

[Bug c++/122092] ICE: tree check: did not expect class ‘type’, have ‘type’ (record_type) in contains_placeholder_p, at tree.cc:4085

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122092 --- Comment #1 from Jonathan Wakely --- This is already fixed. Please stop it.

[Bug c++/122091] internal compiler error: in fold_convert_loc, at fold-const.cc:2504

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122091 --- Comment #2 from Jonathan Wakely --- Again, this is already fixed. GCC 13.2.0 is old and outdated.

[Bug c++/122088] include/c++/13.2.0/variant:1383:43: internal compiler error: Segmentation fault

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122088 --- Comment #4 from Jonathan Wakely --- GCC 15 just says: 122088.cc:13:9: error: expected ‘)’ before ‘...’ token 13 | Bar(Args...) -> Bar>; |~^~~ | ) 122088.cc: In function ‘int main()’: 122088.cc:16:11: error: cl

[Bug c++/116722] [12/13/14/15 Regression] ICE with constexpr template constructor and floating point value

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116722 Jonathan Wakely changed: What|Removed |Added CC||qingren2hxb at gmail dot com --- Comm

[Bug c++/122093] New: Deduction guide using qualified name is rejected with confusing error

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- namespace X { template struct S { }; template X::S(T) -> X::S; } I don't know if this is rejects-valid or just a diagno

[Bug c++/122090] ICE: dependent_type_p, at cp/pt.cc:27843

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

[Bug c++/122093] Deduction guide using qualified name is rejected with confusing error

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

[Bug c++/122093] Deduction guide using qualified name is rejected with confusing error

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122093 --- Comment #2 from Jonathan Wakely --- Hmm, on the other hand, [temp.deduct.guide] p3 says: "The template-name shall be the same identifier as the template-name of the simple-template-id." So that would mean it has to be S and not X::S, in bo

[Bug c++/122093] Deduction guide using qualified name is rejected with confusing error

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

[Bug c++/122092] ICE: tree check: did not expect class ‘type’, have ‘type’ (record_type) in contains_placeholder_p, at tree.cc:4085

2025-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122092 --- Comment #3 from Jonathan Wakely --- This one is even fixed for 13.4.0 so if you were just using a supported release instead of the unsupported and outdated 13.2.0, you wouldn't see this bug.

[Bug c++/122092] ICE: tree check: did not expect class ‘type’, have ‘type’ (record_type) in contains_placeholder_p, at tree.cc:4085

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

[Bug c++/122090] ICE: dependent_type_p, at cp/pt.cc:27843

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

[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

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

[Bug c++/122091] internal compiler error: in fold_convert_loc, at fold-const.cc:2504

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

[Bug c++/121963] Make it easier to change the location of gcm.cache dir and document it

2025-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121963 --- Comment #7 from Jonathan Wakely --- Can you please fix your new blog post to not misattribute Nathaniel's comment to me.

[Bug c++/122083] [15/16 Regression] Bogus -Wnonnull for call to memcmp with length determined using <=> operator

2025-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122083 --- Comment #3 from Jonathan Wakely --- The reduced testcase only gives one warning, but running the version in the testsuite with -Wnonnull gives two warnings: FAIL: 25_algorithms/lexicographical_compare_three_way/1.cc -std=gnu++20 (test for

[Bug c++/122083] [15/16 Regression] Bogus -Wnonnull for call to memcmp with length determined using <=> operator

2025-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122083 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > Seems to be a regression caused by > r15-3328-g673a448aa24efedd5ac140ebf7bfe652d7a6a846 > > "Optimize initialization of small padded objects" That's what I

[Bug c++/122083] [15/16 Regression] Bogus -Wnonnull for call to memcmp with length determined using <=> operator

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

[Bug c++/122083] New: [Regression 15/16] Bogus -Wnonnull for call to memcmp with length determined using <=> operator

2025-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
FIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Blocks: 95507 Target Milestone: --- Reduced from 25_algo

[Bug libstdc++/119721] tuple<> cannot be compared with array

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

[Bug libstdc++/122071] New: defines static functions at namespace scope in header

2025-09-26 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: --- static decimal32 make_decimal32(long long __coeff, int __exp); static decimal32 make_decimal32(unsigned long long __coeff, int __exp

[Bug libstdc++/122062] piecewise_linear_distribution(InputIteratorB, InputIteratorB, InputIteratorW) invokes comma operator

2025-09-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122062 --- Comment #5 from Jonathan Wakely --- Fixed on trunk so far.

[Bug libstdc++/122062] piecewise_linear_distribution(InputIteratorB, InputIteratorB, InputIteratorW) invokes comma operator

2025-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122062 --- Comment #3 from Jonathan Wakely --- Specifically, vector::iterator. If it was vector::iterator it would need the fix. It doesn't hurt to make __normalize immune from evil commas. It's a good habit to do it anywhere a for loop increments more

[Bug libstdc++/122062] piecewise_linear_distribution(InputIteratorB, InputIteratorB, InputIteratorW) invokes comma operator

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

[Bug libstdc++/122062] piecewise_linear_distribution(InputIteratorB, InputIteratorB, InputIteratorW) invokes comma operator

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

[Bug libstdc++/79147] Useless _GLIBCXX_PACKAGE_* macros in

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

[Bug c++/122061] Wmismatched-new-delete extension

2025-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122061 --- Comment #6 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #5) > That means you cannot warn when compiling the original example, because the > destructor is not necessarily wrong. > > But if you compile code that actually

[Bug c++/122061] Wmismatched-new-delete extension

2025-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122061 --- Comment #5 from Jonathan Wakely --- That means you cannot warn when compiling the original example, because the destructor is not necessarily wrong. But if you compile code that actually uses the constructor and destructor, then GCC already

[Bug c++/122061] Wmismatched-new-delete extension

2025-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122061 --- Comment #4 from Jonathan Wakely --- void f() { S s; std::swap(s.p1, s.p2); }

[Bug c++/122061] Wmismatched-new-delete extension

2025-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122061 --- Comment #3 from Jonathan Wakely --- This would have to be a flow-sensitive warning, something like -fanalyzer. Code could change the pointers between the constructor and destructor, so you can't assume that the destructor is wrong.

[Bug libstdc++/70358] Several 26_numerics/random/binomial_distribution/operators etc. tests FAIL

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

[Bug libstdc++/97728] error: ‘imaxdiv_t’ has not been declared in ‘::’

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

[Bug libstdc++/83906] Random FAIL: libstdc++-prettyprinters/80276.cc whatis p4

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

[Bug libstdc++/65114] char_traits::copy violates memcpy constraints, own postcondition

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

[Bug libstdc++/114477] The user-defined constructor of filter_view::iterator is not fully compliant with the standard

2025-09-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114477 --- Comment #9 from Jonathan Wakely --- I submitted an NB comment for C++26 about this.

[Bug libstdc++/89118] Illegal memory access in codecvt::out()

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

[Bug libstdc++/109772] [13 Regression] Memory layout optimization of std::chrono::hh_mm_ss is wrong

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

[Bug libstdc++/82749] piecewise_linear_distribution::densities() non conformity

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

[Bug libstdc++/112925] Optimize std::string construction from std::istreambuf_iterator

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

[Bug libstdc++/119794] [C++26] P2075R6 Philox Engine

2025-09-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119794 --- Comment #3 from Jonathan Wakely --- Implemented for GCC 16, but currently only for 64-bit targets with __int128 support.

[Bug libstdc++/118087] std::deque::emplace does not do uses-allocator construction

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

[Bug libstdc++/79147] Useless _GLIBCXX_PACKAGE_* macros in

2025-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79147 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > We might want to comment out STDC_HEADERS as well, instead of transforming > it to _GLIBCXX_STDC_HEADERS I'll keep this bug open until I've done that too.

[Bug libstdc++/117005] Parallel Mode algorithms need to qualify all calls

2025-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117005 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/113504] High memory usage for parallel `std::sort`

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

[Bug libstdc++/122032] The size of bind_front/bind_back(...) is not optimized

2025-09-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122032 --- Comment #1 from Jonathan Wakely --- Please consider subscribing to the libstdc++ mailing list and making these observations *before* the patches are committed to git.

[Bug libstdc++/122022] bind_front/bind_back/not_fn pass function parameters by value

2025-09-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122022 --- Comment #1 from Jonathan Wakely --- There's no SIGSEGV, that's a compiler-explorer bug: https://github.com/compiler-explorer/compiler-explorer/issues/5376

[Bug libstdc++/122022] bind_front/bind_back/not_fn pass function parameters by value

2025-09-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122022 --- Comment #5 from Jonathan Wakely --- We can make it a rejects-valid testcase instead of a runtime abort: #include struct Obj { Obj() = default; Obj(const Obj&) = delete; }; bool f(const Obj&) { return true; } int main() { Obj obj;

[Bug libstdc++/122022] bind_front/bind_back/not_fn pass function parameters by value

2025-09-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122022 --- Comment #4 from Jonathan Wakely --- It looks like the parameters changed from forwarding references to values in PATCHv5: https://gcc.gnu.org/pipermail/gcc-patches/2025-July/690816.html

[Bug libstdc++/122022] bind_front/bind_back/not_fn pass function parameters by value

2025-09-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122022 Jonathan Wakely changed: What|Removed |Added CC||ncm at gcc dot gnu.org Target Miles

[Bug libstdc++/121929] std::format prints a valid-looking date for invalid 2020y/January/Friday[10]

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

[Bug libstdc++/122022] bind_front/bind_back/not_fn pass function parameters by value

2025-09-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122022 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > There's no SIGSEGV, that's a compiler-explorer bug: > https://github.com/compiler-explorer/compiler-explorer/issues/5376 Actually this one: https://github.c

[Bug libstdc++/119740] [C++26] Implement P2714R1, Bind front and back to NTTP callables

2025-09-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119740 --- Comment #3 from Jonathan Wakely --- r16-3997-ga77146f01563b5df19e70061dc237178b5532aa9

[Bug libstdc++/79147] Useless _GLIBCXX_PACKAGE_* macros in

2025-09-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79147 --- Comment #2 from Jonathan Wakely --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2025-September/695768.html The diff that this produces in the gnerated c++config.h file is: @@ -1531,25 +1533,25 @@ #define _GLIBCXX_LT_OBJDIR ".lib

[Bug libstdc++/79147] Useless _GLIBCXX_PACKAGE_* macros in

2025-09-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79147 --- Comment #3 from Jonathan Wakely --- We might want to comment out STDC_HEADERS as well, instead of transforming it to _GLIBCXX_STDC_HEADERS

[Bug libstdc++/79147] Useless _GLIBCXX_PACKAGE_* macros in

2025-09-19 Thread redi at gcc dot gnu.org via Gcc-bugs
gcc dot gnu.org |redi at gcc dot gnu.org Status|NEW |ASSIGNED

[Bug libstdc++/118087] std::deque::emplace does not do uses-allocator construction

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

[Bug libstdc++/117982] [C++23] Implement std::start_lifetime_as and std::start_lifetime_as_array

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

[Bug c++/121981] [13/14/15/16 Regression] internal compiler error: in hash, at cp/constraint.cc:1999

2025-09-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121981 Jonathan Wakely changed: What|Removed |Added Keywords|needs-bisection | CC|

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

2025-09-18 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 117982, which changed state. Bug 117982 Summary: [C++23] Implement std::start_lifetime_as and std::start_lifetime_as_array https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117982 What|Removed

[Bug libstdc++/117402] [C++26] Implement P2363R5 Extending associative containers with the remaining heterogeneous overloads

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

[Bug c++/93906] Add front end support for std::conditional::type

2025-09-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93906 --- Comment #3 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #2) > I know r12-4069-ga09bb4a852f82a added the speed up way of doing > conditional_t and internally using __conditional_t. Is the C++ front-end > work still needed h

[Bug libstdc++/111963] Predicate copied when it could be forwarded in some STL algorithms

2025-09-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111963 Jonathan Wakely changed: What|Removed |Added Keywords||missed-optimization Statu

[Bug libstdc++/111550] The range adaptor closure object generated by adaptor(args...) is not a perfect forwarding call wrapper

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

[Bug libstdc++/111568] std::not_fn can accept non-movable function

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

[Bug c++/121981] New: internal compiler error: in hash, at cp/constraint.cc:1999

2025-09-17 Thread redi at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- Created attachment 62405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62405&action=edit prepr

[Bug libstdc++/121980] New: [C++26] Implement P2545R4, Read-Copy Update (RCU)

2025-09-17 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 Blocks: 110339 Target Milestone: --- https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2545r4.pdf It would be useful to have urcu in glibc

[Bug libstdc++/121979] New: [C++26] Implement P2530R3, Hazard Pointers

2025-09-17 Thread redi at gcc dot gnu.org via Gcc-bugs
: P3 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/2023/p2530r3.pdf Referenced Bugs: https://gcc.gnu.org/bugzilla

[Bug libstdc++/113460] Segfault in __builtin_coro_destroy when using std::generator to concate ranges

2025-09-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113460 --- Comment #6 from Jonathan Wakely --- It was fixed on trunk by r15-3203-g5cca7517c5868b: c++/coros: do not assume coros don't nest [PR113457]

[Bug c++/113457] Nesting coroutine definitions (e.g. via a lambda or a template expansion) can ICE the compiler

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

[Bug libstdc++/121926] generate_canonical fails for std::float16_t and std::float128_t

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

[Bug libstdc++/121956] tuple-or-pair to just tuple part was missed from P2165R4

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

[Bug libstdc++/121956] tuple-or-pair to just tuple part was missed from P2165R4

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

[Bug libstdc++/121956] tuple-or-pair to just tuple part was missed from P2165R4

2025-09-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121956 --- Comment #7 from Jonathan Wakely --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2025-September/695568.html

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

2025-09-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121913 --- Comment #6 from Jonathan Wakely --- Patch posted to replace 'auto' https://gcc.gnu.org/pipermail/gcc-patches/2025-September/695569.html

[Bug libstdc++/121956] tuple-or-pair to just tuple part was missed from P2165R4

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

[Bug c++/121963] Make it possible to change the location of gcm.cache dir

2025-09-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121963 Jonathan Wakely changed: What|Removed |Added Blocks||103524 --- Comment #1 from Jonathan W

[Bug libstdc++/121956] tuple-or-pair to just tuple part was missed from P2165R4

2025-09-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121956 --- Comment #6 from Jonathan Wakely --- So maybe simply: --- a/libstdc++-v3/include/std/ranges +++ b/libstdc++-v3/include/std/ranges @@ -5460,9 +5460,7 @@ namespace views::__adaptor public: using iterator_category = input_iterator_tag;

[Bug libstdc++/119820] Formatting ranges make a subrange via ranges::subrange (__first, __first + __n)

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

[Bug c++/121955] if constexpr else scoping issues

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

[Bug libstdc++/121946] [missing optimization] std::vector does not use memcpy for the trivially copyable/destructible type

2025-09-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121946 --- Comment #9 from Jonathan Wakely --- Yes, for the other __relocate_a_1 overload.

[Bug libstdc++/121946] [missing optimization] std::vector does not use memcpy for the trivially copyable/destructible type

2025-09-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121946 --- Comment #7 from Jonathan Wakely --- Oh but that's still wrong because we do want to do a single relocate loop for the case where __alloc is not std::allocator. It's only for std::allocator that _Destroy is a no-op. So changing the definitio

  1   2   3   4   5   6   7   8   9   10   >