[Bug c++/120800] [14/15/16 Regression] internal compiler error when using partially initialized class with private constructor and friend

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

[Bug c++/97740] [13/14/15/16 Regression] Weird error message about accessing a private member of my own class inside of std::string_view inside of constexpr

2025-09-03 Thread jason at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/107953] Greater-than operator misparsed inside a lambda expression used as a template argument

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

[Bug c++/107953] Greater-than operator misparsed inside a lambda expression used as a template argument

2025-08-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107953 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-08-21 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 Status|NEW |ASSIGNED --- Comment #20 from Jason Mer

[Bug c++/120757] [13/14/15/16 Regression] ICE: in tsubst, at cp/pt.cc:16787

2025-08-19 Thread jason at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/114480] [13/14/15/16 Regression] g++: internal compiler error: Segmentation fault signal terminated program cc1plus

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

[Bug c++/121244] Wsfinae-incomplete very unhelpfull and probably false positives

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

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

2025-08-11 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 Target Milestone|16.0|15.3

[Bug c++/120620] [13/14/15/16 Regression] Internal Compiler Error in tree.cc, Line #11240

2025-08-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120620 --- Comment #6 from Jason Merrill --- (In reply to Patrick Palka from comment #5) > Do we intend to attempt constant evaluation of user-written __dynamic_cast > calls? If so, we need to make cxx_eval_dynamic_cast_fn robust to > non-constant/non

[Bug c++/121244] Wsfinae-incomplete very unhelpfull and probably false positives

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

[Bug c++/120800] [14/15/16 Regression] internal compiler error when using partially initialized class with private constructor and friend

2025-07-31 Thread jason at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/120577] [14/15/16 Regression] Another crash with [[no_unique_address]] and constexpr functions

2025-07-31 Thread jason at gcc dot gnu.org via Gcc-bugs
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org --- Comment #10 from Jason Merrill --- Fixed for 14.4/15.2/16.

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

2025-07-25 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068 --- Comment #17 from Jason Merrill --- OK, the issue is that we currently don't represent trivial initialization at all, so the initial placement new has no effect. Then the trivial destructors are represented by clobbers, but constant evaluati

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

2025-07-25 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068 --- Comment #15 from Jason Merrill --- (In reply to Tomasz Kamiński from comment #14) Please provide complete testcases, this snippet isn't enough to reproduce.

[Bug c++/114632] ICE when converting static / explicit this lambda to function pointer

2025-07-23 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++/121068] Placement new of array element is rejected at compile-time

2025-07-22 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 Attachment #61891|0 |1 is obsolete|

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

2025-07-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068 --- Comment #11 from Jason Merrill --- (In reply to Tomasz Kamiński from comment #9) > I remember that LWG3436 was discussed in core in Varna > (https://wiki.edg.com/bin/view/Wg21varna/CoreWorkingGroup#LWG3436) and the > current wording is resul

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

2025-07-21 Thread jason at gcc dot gnu.org via Gcc-bugs
|NEW Last reconfirmed||2025-07-21 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org --- Comment #8 from Jason Merrill --- (In reply to Tomasz Kamiński from comment #6) > I believed that `_member` being active after new sho

[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

  1   2   3   4   5   6   7   8   9   10   >