[Bug c++/109966] [13 Regression] ICE in gimplify_var_or_parm_decl, à gimplify.cc:3058

2024-04-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109966 Marek Polacek changed: What|Removed |Added Summary|[13/14 Regression] ICE in |[13 Regression] ICE in

[Bug c++/113300] GCC rejects valid program involving copy list initialization A a = {} of a class with explicit and non explicit default constructors

2024-04-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #6 from Marek Polacek --- This is CWG 2856 https://cplusplus.github.io/CWG/issues/2856.html

[Bug c++/84849] [DR1228] Ambiguous resolution of braze initializer list to a class with explicit constructors

2024-04-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84849 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/114764] noexcept on a friend complains about incomplete type

2024-04-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114764 --- Comment #6 from Marek Polacek --- The former: I'd have to introduce checking that tracks all the declarations and checks that their noexcept-specs match after delayed parsing has taken place. It's not impossible but I didn't (and still

[Bug c++/114764] noexcept on a friend complains about incomplete type

2024-04-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114764 --- Comment #4 from Marek Polacek --- I don't think so, it's the same problem. You could have struct S { friend void f() noexcept(noexcept(a)); friend void f() noexcept(noexcept(b)) { } int a; int b; }; and we'd have to track if the

[Bug c++/114764] noexcept on a friend complains about incomplete type

2024-04-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114764 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/114707] Mark TARGET_EXPRs for function arguments eliding

2024-04-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114707 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/114707] New: Mark TARGET_EXPRs for function arguments eliding

2024-04-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- >From <https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649426.html>: let's do set_target_expr_eliding in convert_for_arg_passing. Then

[Bug c++/114705] New: [DR 2763] Warn about [[noreturn]] that returns during constant evaluation

2024-04-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- clang++ warns here: ``` [[noreturn]] constexpr void f() {} constexpr int x = (f(), 0); ``` l.C:1:36: warning: function

[Bug c++/18635] [DR 504] use of uninitialised reference accepted (without -Wuninitialized) in C++ front end

2024-04-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18635 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/94404] [meta-bug] C++ core issues

2024-04-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 110216, which changed state. Bug 110216 Summary: tuple_size requirements for structured binding has not been updated after DR 2386 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110216 What|Removed

[Bug c++/110216] tuple_size requirements for structured binding has not been updated after DR 2386

2024-04-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110216 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/114697] New: [DR 233] references in user defined conversions

2024-04-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- This should compile: ``` struct Z {}; struct A { operator Z&(); // #1 operator const Z&(); }; struct B { operator Z();

[Bug c++/114625] requires { T{}; } wrongly returns false when T{} is ill-formed while in concept

2024-04-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114625 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug target/114606] -Whardened doesn't trigger with -fcf-protection=none

2024-04-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114606 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/91079] [DR 1881] Standard-layout classes and unnamed bit-fields

2024-04-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91079 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/94404] [meta-bug] C++ core issues

2024-04-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 91079, which changed state. Bug 91079 Summary: [DR 1881] Standard-layout classes and unnamed bit-fields https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91079 What|Removed |Added

[Bug driver/114606] -Whardened doesn't trigger with -fcf-protection=none

2024-04-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |mpolacek at gcc dot gnu.org Last reconfirmed||2024-04-05 Ever confirmed|0 |1

[Bug driver/114606] New: -Whardened doesn't trigger with -fcf-protection=none

2024-04-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- -Whardened warns when -fhardened couldn't enable a hardening option because that option was disabled on the command line, e.g.: $ ./cc1plus -quiet g.C

[Bug c++/111132] [11/12/13 Regression] Function redeclaration in local scope breaks constant expression evaluation

2024-04-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32 Marek Polacek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression]

[Bug c++/91079] [DR 1881] Standard-layout classes and unnamed bit-fields

2024-04-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
-bisection | Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- Fixed by r12-2975: commit 32c3a75390623a0470df52af13f78baddd562981 Author: Jakub Jelinek Date: Tue Aug 17 21:06:39 2021 +0200 c++: Implement

[Bug c++/12944] [meta-bug] C++ name-lookup problems

2024-04-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12944 Bug 12944 depends on bug 85570, which changed state. Bug 85570 Summary: Resolution of unqualified-id in member access involving templates fails https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85570 What|Removed

[Bug c++/85570] Resolution of unqualified-id in member access involving templates fails

2024-04-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85570 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/85570] Resolution of unqualified-id in member access involving templates fails

2024-04-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- Compiles since r12-3643: commit 18b57c1d4a8777bedfe4ed47166f033e71bc144b Author: Jason Merrill Date: Fri Sep 17 14:18:55 2021 -0400 c++: improve lookup of member-qualified names I guess I should add the test.

[Bug c++/114569] GCC accepts forming pointer to function type which is ref qualified

2024-04-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114569 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/114479] [14 Regression] std::is_array_v changed from false to true in GCC 14

2024-04-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114479 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/103825] ICE on switch on enum class in bitfield

2024-04-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103825 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/111132] [11/12/13/14 Regression] Function redeclaration in local scope breaks constant expression evaluation

2024-04-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/114549] [11/12/13 Regression] GCC >= 10.1 selects the wrong overload of C++20 reversed operator== function

2024-04-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114549 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/110338] Implement C++26 language features

2024-04-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110338 Bug 110338 depends on bug 114455, which changed state. Bug 114455 Summary: [C++26] P2748R5 - Disallow binding a returned reference to a temporary https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114455 What|Removed

[Bug c++/114455] [C++26] P2748R5 - Disallow binding a returned reference to a temporary

2024-04-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114455 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/114479] [14 Regression] std::is_array_v changed from false to true in GCC 14

2024-04-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114479 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/114479] [14 Regression] std::is_array_v changed from false to true in GCC 14

2024-03-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114479 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/111426] [11/12/13/14 Regression] "error: use of deleted function" printed twice

2024-03-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111426 --- Comment #3 from Marek Polacek --- I meant that g++5 emitted 111426.C:7:3: error: use of deleted function ‘D::D()’ D d; ^ 111426.C:6:7: note: ‘D::D()’ is implicitly deleted because the default definition would be ill-formed: class D :

[Bug c++/103825] ICE on switch on enum class in bitfield

2024-03-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103825 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

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

2024-03-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 100557, which changed state. Bug 100557 Summary: [11/12/13/14 Regression] Internal compiler error: Error reporting routines re-entered. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100557 What|Removed

[Bug c++/100557] [11/12/13/14 Regression] Internal compiler error: Error reporting routines re-entered.

2024-03-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100557 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/100557] [11/12/13/14 Regression] Internal compiler error: Error reporting routines re-entered.

2024-03-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #6 from Marek Polacek --- Fixed by Patrick's r14-3809. I'll add the test; the patch was fixing a different problem.

[Bug c++/114349] [14 regression] ICE when building qtwebengine with -std=gnu++14 (cxx_eval_call_expression, at cp/constexpr.cc:3027)

2024-03-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114349 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/114439] [14 Regression] icu4c-73.2 build failure: invalid initializer for array member with initialization of array of struct containing arrays since r14-9622

2024-03-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114439 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/114455] [C++26] P2748R5 - Disallow binding a returned reference to a temporary

2024-03-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2024-03-25 --- Comment #1 from Marek Polacek --- Confirmed. I'm interested.

[Bug c++/114460] [C++26] P3106R1 - Clarifying rules for brace elision in aggregate initialization

2024-03-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- Confirmed. I'm interested.

[Bug c++/114439] [14 Regression] icu4c-73.2 build failure: invalid initializer for array member with initialization of array of struct containing arrays since r14-9622

2024-03-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114439 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/59465] [11/12/13 Regression] g++ allows direct-initialization of an array of class type from another array in a mem-initializer

2024-03-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59465 Marek Polacek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression] g++

[Bug c++/110323] [11/12/13 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323 Marek Polacek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression] Code

[Bug c++/114395] [c++20+] std::is_constructible_v result of const reference incorrect

2024-03-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
dot gnu.org |mpolacek at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2024-03-20

[Bug c++/114395] [c++20+] std::is_constructible_v result of const reference incorrect

2024-03-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114395 --- Comment #6 from Marek Polacek --- Right, another design principle is that () should work where {} works, and const B {a}; works. A(b) previously didn't work so it's not really changing meaning. So not a bug IMHO.

[Bug c++/114395] [c++20+] std::is_constructible_v result of const reference incorrect

2024-03-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114395 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/114349] [14 regression] ICE when building qtwebengine with -std=gnu++14 (cxx_eval_call_expression, at cp/constexpr.cc:3027)

2024-03-15 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Priority|P3 |P1 Status|UNCONFIRMED |ASSIGNED

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

2024-03-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- darwin -> probably not P1.

[Bug c++/111592] [11/12/13/14 Regression] ICE on expanding argument pack into variadic constructor

2024-03-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111592 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/109966] [13/14 Regression] ICE in gimplify_var_or_parm_decl, à gimplify.cc:3058

2024-03-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109966 --- Comment #6 from Marek Polacek --- This looks like a failure of potential_prvalue_result_of to notice that there's copy elision taking place (when initializing a field of the array arr).

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323 --- Comment #9 from Marek Polacek --- Oh and I meant to say it's the DECL_DECLARED_INLINE_P check that makes the difference.

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323 --- Comment #8 from Marek Polacek --- (In reply to Patrick Palka from comment #7) > I noticed we emit the function if we turn it into a non-member: > > #include > > constexpr int VAL = 1; > > template > void bar(typename

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323 --- Comment #6 from Marek Polacek --- Extended test. I think all 4 should be emitted. ``` // PR c++/110323 template struct conditional { using type = T; }; template struct conditional { using type = F; }; constexpr int VAL = 1; static

[Bug c++/110031] [11/12/13 Regression] ICE with deprecated attribute and NTTP and diagnostic for deprecated printed out so much

2024-03-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110031 Marek Polacek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression] ICE

[Bug c++/113970] [14 Regression] pch/system-{1,2}.C fails on darwin after r14-8987-gdd9d14f7d53

2024-03-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113970 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/114114] [11/12/13 Regression] Internal compiler error on function-local conditional noexcept

2024-03-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114114 Marek Polacek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression]

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323 --- Comment #5 from Marek Polacek --- VAL is constexpr, which implies const, which in the global scope implies static. Then constrain_visibility_for_template makes "struct conditional<(B == VAL), int, float>" non-TREE_PUBLIC. So with

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323 --- Comment #4 from Marek Polacek --- Ah -- if we walk into TYPE_CONTEXT (t) (here: struct conditional), then in min_vis_r we determine the visibility as VISIBILITY_ANON. Without it, it remains VISIBILITY_DEFAULT.

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110323 --- Comment #3 from Marek Polacek --- This makes a difference for some reason: --- a/gcc/cp/tree.cc +++ b/gcc/cp/tree.cc @@ -5542,7 +5542,7 @@ cp_walk_subtrees (tree *tp, int *walk_subtrees_p, walk_tree_fn func, break; case

[Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated

2024-03-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- Started with r11-291-g0f50f6daa14018: commit 0f50f6daa140186a048cbf33f54f4591eabf5f12 Author: Jason Merrill Date: Mon May 11 15:46:59 2020 -0400 c++: tree walk into TYPENAME_TYPE. ``` template struct

[Bug c++/98356] [11/12/13/14 Regression] ICE in cp_parser_dot_deref_incomplete, at cp/parser.c:7899 since r9-4841-g2139fd74f31449c0

2024-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98356 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/114114] [11/12/13/14 Regression] Internal compiler error on function-local conditional noexcept

2024-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |mpolacek at gcc dot gnu.org Status|NEW |ASSIGNED CC||mpolacek at gcc dot gnu.org

[Bug c++/114183] [11/12/13/14 Regression] Lambda constexpr works in msvc but not in gcc

2024-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114183 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/110031] [11/12/13/14 Regression] ICE with deprecated attribute and NTTP and diagnostic for deprecated printed out so much

2024-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110031 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/110031] [11/12/13/14 Regression] ICE with deprecated attribute and NTTP and diagnostic for deprecated printed out so much

2024-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110031 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/103497] [11/12/13/14 Regression] ICE when decltype(auto)... as parameters

2024-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103497 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/106207] [11/12/13/14 Regression] ICE in apply_fixit, at edit-context.cc:769

2024-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106207 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|mpolacek at gcc

[Bug c++/110075] Bogus -Wdangling-reference

2024-03-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/110213] Bogus (as opposed to false positive) -Wdangling-reference warning

2024-03-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110213 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/110358] requesting nicer suppression for Wdangling-reference

2024-03-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110358 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/110242] ICE on valid (decltype with lambda)

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110242 --- Comment #3 from Marek Polacek --- We're trying to emit the "no return statement in function returning non-void" warning, which triggers dump_template_bindings: 493 push_deferring_access_checks (dk_no_check); 494 t = tsubst

[Bug target/106355] Linux s390x -O2 argument passing miscompile

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #9 from Marek Polacek --- Assuming fixed.

[Bug c++/113987] [12/13 Regression] Binding a reference to an uninitialized data member should not cause -Wuninitialized

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113987 Marek Polacek changed: What|Removed |Added Summary|[12/13/14 Regression] |[12/13 Regression] Binding

[Bug c++/85973] [[nodiscard]] on class shall emit a warning for unused anonymous variable

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85973 Marek Polacek changed: What|Removed |Added CC||tiagomacarios at gmail dot com ---

[Bug c++/98520] nodiscard not diagnosed in comma operator

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Marek Polacek --- Dup. *** This bug has been marked as a duplicate of bug 85973 ***

[Bug c++/107457] ICE when template lambda alias used as default template argument

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107457 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

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

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430 Bug 107430 depends on bug 110107, which changed state. Bug 110107 Summary: ICE on invalid code with lambda https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110107 What|Removed |Added

[Bug c++/110107] ICE on invalid code with lambda

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Marek Polacek --- This looks exactly like bug 110242. *** This bug has been marked as a duplicate of bug 110242 ***

[Bug c++/110242] ICE on valid (decltype with lambda)

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110242 --- Comment #2 from Marek Polacek --- *** Bug 110107 has been marked as a duplicate of this bug. ***

[Bug c++/110242] ICE on valid (decltype with lambda)

2024-02-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||2024-02-29 Ever confirmed|0 |1 CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Confirmed. internal compiler error: error reporting routines re-entered. 0x10bc067 push_template_decl

[Bug c++/59465] [11/12/13/14 Regression] g++ allows direct-initialization of an array of class type from another array in a mem-initializer

2024-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59465 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/59465] [11/12/13/14 Regression] g++ allows direct-initialization of an array of class type from another array in a mem-initializer

2024-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59465 --- Comment #6 from Marek Polacek --- Started to be accepted with r0-110915-ga034826198b771: https://gcc.gnu.org/pipermail/gcc-patches/2011-August/320236.html which was supposed to be a cleanup, not a deliberate change to start accepting the

[Bug c++/59465] [11/12/13/14 Regression] g++ allows direct-initialization of an array of class type from another array in a mem-initializer

2024-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59465 --- Comment #5 from Marek Polacek --- We accept the test because we do else if (type_build_ctor_call (type) || (init && CLASS_TYPE_P (strip_array_types (type { if (TREE_CODE (type) == ARRAY_TYPE) {

[Bug c++/59465] [11/12/13/14 Regression] g++ allows direct-initialization of an array of class type from another array in a mem-initializer

2024-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59465 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/114031] gcc rejects valid code with pointer to member field cast inside a class not completed

2024-02-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114031 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/113987] [12/13/14 Regression] Binding a reference to an uninitialized data member should not cause -Wuninitialized

2024-02-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113987 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #6 from Marek

[Bug c++/113987] [12/13/14 Regression] Binding a reference to an uninitialized data member should not cause -Wuninitialized

2024-02-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/113987] [12/13/14 Regression] Binding a reference to an uninitialized data member should not cause -Wuninitialized

2024-02-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113987 --- Comment #5 from Marek Polacek --- We already check !INDIRECT_TYPE_P, but here we're invoking a constructor, and we don't check that its parameters are !INDIRECT_TYPE_P.

[Bug c++/113969] ICE: SIGSEGV in finish_enum_value_list (decl.cc:17143) (or build_enumerator (decl.cc:17438) ) on invalid code

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113969 Marek Polacek changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/113969] ICE: SIGSEGV in finish_enum_value_list (decl.cc:17143) (or build_enumerator (decl.cc:17438) ) on invalid code

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113969 Marek Polacek changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/96496] Conversion to enum with underlying type bool produces wrong result

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96496 Marek Polacek changed: What|Removed |Added Last reconfirmed|2020-08-06 00:00:00 |2024-2-17 --- Comment #5 from Marek

[Bug c++/96360] ICE in tree check: expected integer_cst, have truth_orif_expr in get_len, at tree.h:5954

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
|--- |FIXED CC||mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- Fixed by r12-7574.

[Bug c++/113966] [14 Regression] Internal compiler error in `do_auto_deduction`

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113966 --- Comment #5 from Marek Polacek --- /* Check any placeholder constraints against the deduced type. */ if (processing_template_decl && context == adc_unify) /* Constraints will be checked after deduction. */; else if (tree constr =

[Bug c++/113966] [14 Regression] Internal compiler error in `do_auto_deduction`

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org, ||ppalka at gcc dot gnu.org Last reconfirmed||2024-02-17 Priority|P3 |P1 --- Comment #4 from Marek Polacek --- Started to ICE

[Bug c++/113969] ICE: SIGSEGV in finish_enum_value_list (decl.cc:17143) (or build_enumerator (decl.cc:17438) ) on invalid code

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||2024-02-17 CC||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW

[Bug c++/113968] ICE: in create_tmp_var, at gimple-expr.cc:488 with -fcontracts and invalid member in contract

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/113158] [11/12/13 Regression] Erroneous "looser exception specification" error for class template and depedent noexcept value

2024-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113158 Marek Polacek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression]

  1   2   3   4   5   6   7   8   9   10   >