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

2025-07-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068 --- Comment #5 from Jason Merrill --- The intent of the patch was to support new (&union_.member) T syntax like union_.member = T() for setting the active member, as in https://eel.is/c++draft/class.union#general-example-3 but adding the li

[Bug c++/55004] [meta-bug] constexpr issues

2025-07-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 87097, which changed state. Bug 87097 Summary: value-initialization of an array of more than 1 element not treated as a constant initializer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87097 What|Removed

[Bug c++/87097] value-initialization of an array of more than 1 element not treated as a constant initializer

2025-07-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87097 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org

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

2025-07-16 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068 --- Comment #3 from Jason Merrill --- Created attachment 61891 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61891&action=edit fix Let me know how this works for you.

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

2025-07-16 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug c++/63164] unnecessary calls to __dynamic_cast

2025-07-15 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63164 --- Comment #17 from Jason Merrill --- As I commented at https://inbox.sourceware.org/gcc-patches/75ff8af8-af03-42fa-b68b-e6c16a34c...@redhat.com/ we could optimize the dynamic_cast to type_info::operator== instead of vtable comparison.

[Bug libstdc++/121053] std::visit is not SFINAE-friendly

2025-07-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121053 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug c++/104620] FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors)

2025-07-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104620 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/49372] Temporaries evaluated for arguments of a default constructors of array elements not destructed properly (?)

2025-07-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49372 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/117785] [C++26] P3068R5 - constexpr exceptions

2025-07-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117785 --- Comment #40 from Jason Merrill --- (In reply to Jakub Jelinek from comment #34) > Anyway, will defer this to Jason, the change to only do what() printing if > derived from std::exception was fairly small and can be always reverted if > there

[Bug c++/121012] [16 Regression] Error on lambda with auto parameter as template argument

2025-07-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121012 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/121008] [16 Regression] Error on 'this' inside noexcept specifier of lambda capturing 'this' inside noexcept specifier

2025-07-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121008 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/120243] [15/16 Regression] Exception rethrown from coroutine promise type unhandled_exception not caught under -O1

2025-07-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120243 --- Comment #12 from Jason Merrill --- (In reply to Iain Sandoe from comment #10) > that's fine too - my plan is to back port the stack of changes made on trunk > rather than doing piecemeal - to try and avoid churn.. Yeah, backporting this pat

[Bug c++/120243] [15/16 Regression] Exception rethrown from coroutine promise type unhandled_exception not caught under -O1

2025-07-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120243 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/121012] [16 Regression] Error on lambda with auto parameter as template argument

2025-07-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121012 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/121008] [16 Regression] Error on 'this' inside noexcept specifier of lambda capturing 'this' inside noexcept specifier

2025-07-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121008 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug tree-optimization/119930] [15/16 regression] g++.dg/coroutines/torture/pr103953.C FAILs with -O3

2025-07-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119930 Jason Merrill changed: What|Removed |Added Component|c++ |tree-optimization --- Comment #13 from

[Bug c++/120243] [15/16 Regression] Exception rethrown from coroutine promise type unhandled_exception not caught under -O1

2025-07-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120243 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug c++/120917] warning: use of 'auto' in template argument only available with '-fconcepts-ts'

2025-07-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120917 --- Comment #25 from Jason Merrill --- (In reply to Frank Heckenbach from comment #24) > auto f (S ); Right, this is one of the cases fixed for GCC 16 by my commit above.

[Bug c++/120917] warning: use of 'auto' in template argument only available with '-fconcepts-ts'

2025-07-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120917 --- Comment #23 from Jason Merrill --- (In reply to Frank Heckenbach from comment #21) > So my question stands. Then yes, it does look like it should work; libstdc++ uses that 'requires function call' pattern in template concept __is_der

[Bug c++/120917] warning: use of 'auto' in template argument only available with '-fconcepts-ts'

2025-07-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120917 Jason Merrill changed: What|Removed |Added Status|RESOLVED|ASSIGNED Last reconfirmed|

[Bug c++/120953] Accepts invalid with range for

2025-07-04 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120953 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/120575] [15/16 Regression] ICE: in cp_parser_abort_tentative_parse, at cp/parser.cc:36574

2025-07-04 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120575 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/120575] [15/16 Regression] ICE: in cp_parser_abort_tentative_parse, at cp/parser.cc:36574

2025-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/120684] [15/16 Regression] bogus "error: destroying ‘’ outside its lifetime" with constexpr dtor object inside repeated range-based for loops

2025-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120684 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/120716] [16 regression] ICE on https://eel.is/c++draft/expr.const#example-3 in C++23 since r16-149

2025-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120716 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/120748] [16 Regression] New crash with lambda code

2025-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120748 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/120748] [16 Regression] New crash with lambda code

2025-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120748 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/120716] [16 regression] ICE on https://eel.is/c++draft/expr.const#example-3 in C++23 since r16-149

2025-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120716 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/120684] [15/16 Regression] bogus "error: destroying ‘’ outside its lifetime" with constexpr dtor object inside repeated range-based for loops

2025-07-02 Thread jason at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Last reconfirmed||2025-07-02

[Bug c++/120917] warning: use of 'auto' in template argument only available with '-fconcepts-ts'

2025-07-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120917 --- Comment #15 from Jason Merrill --- We always intended to diagnose Concepts TS features that didn't make it into C++20, but there was a bug in GCC 12 that we didn't diagnose that particular case because it hit the transformation from void

[Bug c++/120678] __is_trivially_destructible should take 1 arg, not -1

2025-06-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120678 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/120678] __is_trivially_destructible should take 1 arg, not -1

2025-06-16 Thread jason at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Last reconfirmed||2025-06-17

[Bug tree-optimization/118995] Missed optimization: [[assume]] works not as good as std::unreachable()

2025-06-11 Thread jason at gcc dot gnu.org via Gcc-bugs
||jason at gcc dot gnu.org Last reconfirmed||2025-06-11 Ever confirmed|0 |1

[Bug c++/119064] [C++26] P2786R13 - Trivial Relocatability

2025-06-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119064 --- Comment #3 from Jason Merrill --- (In reply to Jakub Jelinek from comment #2) > The patch is on top of the > https://gcc.gnu.org/pipermail/gcc-patches/2025-June/686210.html > https://gcc.gnu.org/pipermail/gcc-patches/2025-June/686211.html >

[Bug c++/120502] [15 Regression] ICE in verify_ctor_sanity with -std=c++20 -O1 and no_unique_address since r15-9189

2025-06-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120502 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/120555] [15/16 Regression] Use of auto func before deduction of auto

2025-06-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120555 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/120555] [15/16 Regression] Use of auto func before deduction of auto

2025-06-06 Thread jason at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Ever confirmed|0 |1

[Bug c++/67491] [meta-bug] concepts issues

2025-06-05 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 120123, which changed state. Bug 120123 Summary: [13 Regression] Implicit this is not used in a requires clause in nested lambdas https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120123 What|Removed

[Bug c++/120123] [13 Regression] Implicit this is not used in a requires clause in nested lambdas

2025-06-05 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120123 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/120502] [15/16 Regression] ICE in verify_ctor_sanity with -std=c++20 -O1 and no_unique_address since r15-9189

2025-06-04 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120502 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org

[Bug c++/120506] [16 Regression] Missing reason for failed constinit since r16-57

2025-06-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120506 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/120123] [13 Regression] Implicit this is not used in a requires clause in nested lambdas

2025-06-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120123 Jason Merrill changed: What|Removed |Added Summary|[12/13/14/15/16 Regression] |[13 Regression] Implicit

[Bug c++/120504] [16 Regression] gcc-16 fails to build llvm-20 and gdb-16.3 unique_ptr.h:91:23: error: invalid application of 'sizeof' to incomplete type ... since r16-944-g0629924777ea20

2025-06-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120504 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/120506] [16 Regression] Missing reason for failed constinit since r16-57

2025-06-02 Thread jason at gcc dot gnu.org via Gcc-bugs
||2025-06-02 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Ever confirmed|0 |1

[Bug c++/107600] New __is_destructible built-in

2025-06-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 --- Comment #9 from Jason Merrill --- Created attachment 61560 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61560&action=edit regression fixes Thanks, now testing these fixes for those three issues:

[Bug c++/120123] [12/13/14/15/16 Regression] Implicit this is not used in a requires clause in nested lambdas

2025-05-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120123 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/113563] Rejects capture of `this` in C++23 `this auto` lambda

2025-05-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113563 --- Comment #15 from Jason Merrill --- (In reply to Nathaniel Shead from comment #14) > Created attachment 61550 [details] > pr113563 testcase > > I'd briefly started looking at this a while back and had written some tests, > but I'd gotten stu

[Bug c++/113563] Rejects capture of `this` in C++23 `this auto` lambda

2025-05-29 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113563 --- Comment #13 from Jason Merrill --- Fixed for 16 so far.

[Bug c++/113563] Rejects capture of `this` in C++23 `this auto` lambda

2025-05-29 Thread jason at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org

[Bug c++/120453] [16 regression] qcoro fails to build its tests (error: use of deleted function ... is implicitly deleted because the default definition would be ill-formed) since r16-773-ge06555a40c0

2025-05-29 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120453 --- Comment #15 from Jason Merrill --- (In reply to Iain Sandoe from comment #14) > * If we add the non-coroutine simulation of the ramp, then clang-20 also > complains - but with a different diagnostic: > > ":97:10: error: call to implicitly-

[Bug c++/120453] [16 regression] qcoro fails to build its tests (error: use of deleted function ... is implicitly deleted because the default definition would be ill-formed) since r16-773-ge06555a40c0

2025-05-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120453 --- Comment #13 from Jason Merrill --- In the original testcase we do choose to do NRVO, but this fails /* Don't check copy-initialization for NRV in a coroutine ramp; we implement this case as NRV, but it's specified as

[Bug c++/120453] [16 regression] qcoro fails to build its tests (error: use of deleted function ... is implicitly deleted because the default definition would be ill-formed) since r16-773-ge06555a40c0

2025-05-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120453 --- Comment #12 from Jason Merrill --- (In reply to Iain Sandoe from comment #11) Good point, in the reduced testcase, under https://eel.is/c++draft/class.mem#class.copy.ctor-8 TaskBase doesn't get a move constructor at all. But in the origina

[Bug c++/107600] New __is_destructible built-in

2025-05-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c++/120453] [16 regression] qcoro fails to build its tests (error: use of deleted function ... is implicitly deleted because the default definition would be ill-formed) since r16-773-ge06555a40c0

2025-05-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120453 --- Comment #10 from Jason Merrill --- (In reply to Iain Sandoe from comment #9) > OK so the reason this fails is because check_return_expr() concludes that we > cannot do NRVO Yes, because the implementation is permitted to use temporary objec

[Bug c++/107600] New __is_destructible built-in

2025-05-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/117785] [C++26] P3068R5 - constexpr exceptions

2025-05-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117785 --- Comment #14 from Jason Merrill --- (In reply to Jakub Jelinek from comment #13) > (In reply to Hana Dusíková from comment #12) > > I'm using [[gnu::used]] to emit constexpr symbol so it can be part of > > compatible interface. Sure, that wo

[Bug c++/117785] [C++26] P3068R5 - constexpr exceptions

2025-05-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117785 --- Comment #11 from Jason Merrill --- (In reply to Jakub Jelinek from comment #7) > where making the destructor constexpr and thus effectively inline would have > terrible effects, virtual tables of exception and similar classes now > emitted e

[Bug c++/117785] [C++26] P3068R5 - constexpr exceptions

2025-05-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117785 --- Comment #9 from Jason Merrill --- I had been thinking thinking that exception_ptr would become compiler magic, since it's unspecified by the standard, while std::exception would not, since it's a standard class that is regularly derived from

[Bug c++/117785] [C++26] P3068R5 - constexpr exceptions

2025-05-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117785 --- Comment #6 from Jason Merrill --- (In reply to Jakub Jelinek from comment #3) > Jonathan, thoughts on the library side? > E.g. std::uncaught_exceptions is just declared in the header, but if it > needs to be constexpr it needs some inline de

[Bug c++/116954] [13/14 Regression] format attribute is being lost for function template with a depedent type argument and decl merging since r13-4160-g2efb237ffc68ec

2025-05-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116954 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/120400] C++ FE optimisations reorder && operands.

2025-05-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120400 Jason Merrill changed: What|Removed |Added Attachment #61500|0 |1 is obsolete|

[Bug c++/95298] [12/13 Regression] sorry, unimplemented: mangling record_type

2025-05-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95298 --- Comment #12 from Jason Merrill --- I'm reluctant to backport mangling fixes, and the PR says this was broken as far back as GCC 7, so I lean toward not backporting.

[Bug c++/117817] [13 Regression] Compile error when taking address of temporary array in sizeof operator since r13-6716-g31cdfdef04701e

2025-05-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117817 --- Comment #5 from Jason Merrill --- That patch also introduced PR120385, so we shouldn't just backport it.

[Bug c++/94264] Array-to-pointer conversion not performed on array prvalues

2025-05-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94264 --- Comment #11 from Jason Merrill --- This caused PR120385.

[Bug c++/120400] C++ FE optimisations reorder && operands.

2025-05-23 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120400 --- Comment #13 from Jason Merrill --- Created attachment 61500 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61500&action=edit possible fix Does this fix the issue?

[Bug c++/120395] Calls to std::__is_constant_evaluated() hurt codegen at -O0

2025-05-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120395 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug c++/120385] [14/15/16 Regression] GCC 14 incorrectly accepts array prvalues with certain operators

2025-05-22 Thread jason at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |NEW CC||jason at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Jason Merrill --- https://cplusplus.github.io/CWG/issues/2548.html

[Bug c++/120395] Calls to std::__is_constant_evaluated() hurt codegen at -O0

2025-05-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120395 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Ever

[Bug c++/120204] `is not usable as a 'constexpr' function because` and no reason why

2025-05-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120204 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug c++/120204] `is not usable as a 'constexpr' function because` and no reason why

2025-05-09 Thread jason at gcc dot gnu.org via Gcc-bugs
|ASSIGNED CC||jason at gcc dot gnu.org Last reconfirmed||2025-05-09 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/120185] [16 Regression] nss-3.11 ICE since r16-479-gabab79397ef97a in type_has_converting_constructor

2025-05-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120185 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/120185] [16 Regression] nss-3.11 ICE since r16-479-gabab79397ef97a in type_has_converting_constructor

2025-05-09 Thread jason at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug jit/101491] /usr/local/include/libgccjit++.h conflicts between different GCC installations

2025-05-06 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101491 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15 since r15-3153-g68ee624bc52ba1

2025-05-05 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 --- Comment #19 from Jason Merrill --- (In reply to Jason Merrill from comment #14) > It's frustrating that apparently EWG got to see an example but it isn't > preserved anywhere. Ah, seems like this is it: https://github.com/GorNishanov/await/

[Bug c++/55004] [meta-bug] constexpr issues

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 107744, which changed state. Bug 107744 Summary: Error in constant evaluation of dynamic_cast https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107744 What|Removed |Added

[Bug c++/107744] Error in constant evaluation of dynamic_cast

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107744 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org

[Bug c++/85944] Address of temporary at global scope not considered constexpr

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85944 --- Comment #19 from Jason Merrill --- *** Bug 107744 has been marked as a duplicate of this bug. ***

[Bug c++/85944] Address of temporary at global scope not considered constexpr

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85944 --- Comment #18 from Jason Merrill --- *** Bug 99018 has been marked as a duplicate of this bug. ***

[Bug c++/99018] Comparing address of array element not considered a constant expression in certain contexts

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99018 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org

[Bug c++/55004] [meta-bug] constexpr issues

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 115207, which changed state. Bug 115207 Summary: [constexpr] constexpr assignment rejected as non const on self-assignment test https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115207 What|Removed

[Bug c++/115207] [constexpr] constexpr assignment rejected as non const on self-assignment test

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
||jason at gcc dot gnu.org Status|RESOLVED|ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Resolution|DUPLICATE |--- Ever confirmed|0 |1

[Bug c++/85944] Address of temporary at global scope not considered constexpr

2025-05-02 Thread jason at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org --- Comment #17 from Jason Merrill --- Fixed on trunk by r16-325-g25fe59805029e1 for PR119162.

[Bug c++/120012] [12/13/14/15/16 Regression] P1008R1 causes tail padding reuse in C++20 mode

2025-05-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120012 --- Comment #4 from Jason Merrill --- (In reply to Jason Merrill from comment #3) > On branches I'm thinking to give the warning under -Wabi=0. It's awkward > that plain -Wabi currently gives a warning, though that could change. That is, since

[Bug c++/120012] [12/13/14/15/16 Regression] P1008R1 causes tail padding reuse in C++20 mode

2025-05-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120012 --- Comment #3 from Jason Merrill --- (In reply to Richard Biener from comment #2) > going to be interesting to decide what to do on branches ... does it affect > the ABI of any part of libstdc++, in the shared object or instantiated > templates

[Bug c++/119859] [15/16 Regression][CWG2273] template member function overload with base class

2025-04-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119859 Jason Merrill changed: What|Removed |Added Last reconfirmed||2025-04-30 Status|UNCONFIRM

[Bug c++/119305] [14 Regression] ICE in add_to_same_comdat_group with constexpr virtual and constexpr instance

2025-04-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119305 --- Comment #4 from Jason Merrill --- (In reply to Patrick Palka from comment #3) > Jakub/Jason, shall we backport r15-521 to the 14 branch in order to fix this > PR for 14.3? That would make sense to me, but let's see what Jakub thinks.

[Bug c++/120012] [12/13/14/15/16 Regression] P1008R1 causes tail padding reuse in C++20 mode

2025-04-29 Thread jason at gcc dot gnu.org via Gcc-bugs
||2025-04-29 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15 since r15-3153-g68ee624bc52ba1

2025-04-29 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 --- Comment #18 from Jason Merrill --- (In reply to Iain Sandoe from comment #17) > > > In the meantime, perhaps it would be enough to revert the "fix" for > > > PR115908 > > > (and presumably mark that as INVALID?) - or do you have other thoug

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15 since r15-3153-g68ee624bc52ba1

2025-04-29 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 --- Comment #16 from Jason Merrill --- (In reply to Iain Sandoe from comment #15) > hmm .. EWG does seem to iterate at times ... maybe I can reach out to Lewis > for the example (and to ask him how Ville's request is intended to be > handled).

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15 since r15-3153-g68ee624bc52ba1

2025-04-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/119964] [15/16 regression] GCC 15 does not delete explicitly-defaulted move constructor with (const T&&) parameter

2025-04-28 Thread jason at gcc dot gnu.org via Gcc-bugs
|1 CC||jason at gcc dot gnu.org, ||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from Jason Merrill --- This changed in r15-3721

[Bug c++/118629] [14 Regression] ice in cp_parser_expression_statement with __FUNCTION__ inside decltype for the trailing return type of a lambda

2025-04-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118629 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/117530] [14 Regression] Mismatch of lambda type with itself in recursive alias declaration

2025-04-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117530 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/107430] [meta-bug] lambda in decltype

2025-04-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430 Bug 107430 depends on bug 117530, which changed state. Bug 117530 Summary: [14 Regression] Mismatch of lambda type with itself in recursive alias declaration https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117530 What|Removed

[Bug c++/114772] [12/13/14/15/16 Regression] pragma GCC target applied to earlier template function with __attribute__((warn_unused_result))

2025-04-23 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114772 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/111075] [13/14 Regression] ICE on g++.dg/torture/tail-padding1.C on darwin since r13-6145-gb2287a4d9a640fdc2caef6a067830ea65044deb7

2025-04-23 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111075 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/113360] [13/14 Regression] Truncated constexpr error messages with -std=c++23/26

2025-04-23 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113360 Jason Merrill changed: What|Removed |Added Target Milestone|13.4|15.0 Status|ASSIGNED

[Bug c++/119859] [15/16 Regression][CWG2273] template member function overload with base class

2025-04-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119859 --- Comment #9 from Jason Merrill --- One of the EDG developers points out that the difference is not with CWG2273 but rather that in other compilers the base template is not brought in by the derived template. Before P1787 only the parameters

[Bug c++/119859] [15/16 Regression][CWG2273] template member function overload with base class

2025-04-21 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119859 --- Comment #7 from Jason Merrill --- (In reply to Richard Biener from comment #6) > This seems to be kind-of SUSPENDED if the standard is ambiguous. It might > be reasonable to go back to the previous behavior for the ambiguous case. I didn'

  1   2   3   4   5   6   7   8   9   10   >