[Bug c++/92787] P0634R3 is not implemented correctly if parameter-declaration appears in a default argument

2020-09-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92787 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/97165] New: Infinite error stream on invalid code

2020-09-22 Thread mpolacek at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- a

[Bug c++/97165] [9/10/11 Regression] Infinite error stream on invalid code

2020-09-22 Thread mpolacek at gcc dot gnu.org
stream on|[9/10/11 Regression] |invalid code|Infinite error stream on ||invalid code Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Keywords

[Bug c++/97165] [9/10/11 Regression] Infinite error stream on invalid code

2020-09-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97165 Marek Polacek changed: What|Removed |Added Last reconfirmed||2020-09-22 Status|UNCONFIRME

[Bug c++/97165] [9/10/11 Regression] Infinite error stream on invalid code

2020-09-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97165 --- Comment #2 from Marek Polacek --- Similar case: template class p

[Bug c++/94695] Implement -Wrange-loop-analysis

2020-09-22 Thread mpolacek at gcc dot gnu.org
|1 Last reconfirmed||2020-09-22 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/84329] ICE with broken return type of generic lambda

2020-09-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84329 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c/97157] [11 Regression] -Wduplicated-branches: C ICE in hash_operand, at fold-const.c:3768 since r11-3302-g3696a50beeb73f4d

2020-09-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97157 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 Marek Polacek changed: What|Removed |Added CC||jim at meyering dot net --- Comment #7 f

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92134] static constinit members incorrectly compile

2019-10-17 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/92136] New: cc1plus segv with CTAD and -fchecking

2019-10-17 Thread mpolacek at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- This testcase, provided by Pilar Latiesa: template class Base {}; template class Test : public Base> { public: Test() = default; template typename T> Test(Base&

[Bug c++/92136] cc1plus segv with CTAD and -fchecking

2019-10-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92136 --- Comment #1 from Marek Polacek --- Started with commit 42decc18f5e1795228b8259de7880d7f676e36c7 Author: jason Date: Tue Feb 28 23:57:09 2017 + Class template argument deduction refinements * call.c (joust): Mo

[Bug c++/92136] cc1plus segv with CTAD and -fchecking

2019-10-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92136 --- Comment #2 from Marek Polacek --- We call comp_template_parms with 2 D.2223, 1 d, <<< Unknown tree: template_decl >>> 2 D.2254, 1 d, <<< Unknown tree: template_decl >>> it compares D.2223 to D.2254, then d to d, then the template_decls. Whe

[Bug c++/92136] cc1plus segv with CTAD and -fchecking

2019-10-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92136 --- Comment #3 from Marek Polacek --- Same issue with an explicit deduction guide: template class Base {}; template class Test1 : public Base> { public: Test1() = default; template typename T> Test1(Base> const &) {} }; template typ

[Bug c++/88323] implement C++20 language features.

2019-10-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88323 Bug 88323 depends on bug 91368, which changed state. Bug 91368 Summary: Implement P1301R4: [[nodiscard("with reason")]] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91368 What|Removed |Added

[Bug c++/91368] Implement P1301R4: [[nodiscard("with reason")]]

2019-10-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91368 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/91548] [10 Regression] Regression in constexpr evaluation of std::array

2019-10-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548 --- Comment #3 from Marek Polacek --- Sorry about that. I've been working on new C++20 features in the dwindling stage 1 time, and kept kicking this can down the stage3 road. But hopefully I'll get to this after posting my aggregate paren init

[Bug c++/92106] [8/9/10 Regression] ICE with structured bindings and -Wreturn-local-addr

2019-10-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Mon Oct 21 18:22:41 2019 New Revision: 277264 URL: https://gcc.gnu.org/viewcvs?rev=277264&root=gcc&view=rev Log: PR c++/92106 - ICE with structured bindings and -Wreturn-local-

[Bug c++/92106] [8/9 Regression] ICE with structured bindings and -Wreturn-local-addr

2019-10-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106 Marek Polacek changed: What|Removed |Added Summary|[8/9/10 Regression] ICE |[8/9 Regression] ICE with

[Bug c++/92062] [9/10 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Mon Oct 21 18:45:45 2019 New Revision: 277266 URL: https://gcc.gnu.org/viewcvs?rev=277266&root=gcc&view=rev Log: PR c++/92062 - ODR-use ignored for static member of class template. ha

[Bug c++/92062] [9 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062 Marek Polacek changed: What|Removed |Added Summary|[9/10 Regression] ODR-use |[9 Regression] ODR-use by

[Bug c++/91363] Implement P0960R3: Parenthesized initialization of aggregates

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91363 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #2 from Marek Polacek

[Bug c++/92106] [8/9 Regression] ICE with structured bindings and -Wreturn-local-addr

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106 --- Comment #8 from Marek Polacek --- Author: mpolacek Date: Tue Oct 22 15:21:34 2019 New Revision: 277294 URL: https://gcc.gnu.org/viewcvs?rev=277294&root=gcc&view=rev Log: PR c++/92106 - ICE with structured bindings and -Wreturn-local-

[Bug c++/92062] [9 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062 --- Comment #7 from Marek Polacek --- Author: mpolacek Date: Tue Oct 22 15:46:47 2019 New Revision: 277295 URL: https://gcc.gnu.org/viewcvs?rev=277295&root=gcc&view=rev Log: PR c++/92062 - ODR-use ignored for static member of class templ

[Bug c++/92062] [9 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92181] initializer_list & string_view result in "modification of '' is not a constant expression

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92181 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/91548] [10 Regression] Regression in constexpr evaluation of std::array

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548 --- Comment #4 from Marek Polacek --- (In reply to Hannes Hauswedell from comment #2) > Any news on this issue? We are using this pattern in some rather central > files in our library and the bug literally breaks 90% of our unit tests so > we can

[Bug c++/92106] [8 Regression] ICE with structured bindings and -Wreturn-local-addr

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106 --- Comment #9 from Marek Polacek --- Author: mpolacek Date: Tue Oct 22 17:46:12 2019 New Revision: 277296 URL: https://gcc.gnu.org/viewcvs?rev=277296&root=gcc&view=rev Log: PR c++/92106 - ICE with structured bindings and -Wreturn-local-

[Bug c++/92106] [8 Regression] ICE with structured bindings and -Wreturn-local-addr

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92182] No way to silence ''A::TKind' is too small to hold all values of 'enum Kind''

2019-10-22 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Last reconfirmed||2019-10-22 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0

[Bug c++/91548] [10 Regression] Regression in constexpr evaluation of std::array

2019-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548 --- Comment #7 from Marek Polacek --- Thanks. Reduced (no templates, no lambda): constexpr int& impl(const int (&array)[10], int index) { return const_cast(array[index]); } struct A { constexpr int& operator[](int i) { return impl(elems, i

[Bug c++/92198] error "different exception specifier" with forward referring noexcept condition

2019-10-23 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #1 from Marek Polacek --- Fixed by r272586 so fixed in GCC 10. Certainly not backportable.

[Bug c++/92201] [10 Regression] "internal compiler error: ‘verify_gimple’ failed" with -std=c++2a

2019-10-23 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2019-10-23 CC||jakub at gcc dot gnu.org, ||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0

[Bug c++/91548] [10 Regression] Regression in constexpr evaluation of std::array

2019-10-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #8 from Marek Polacek

[Bug c++/91427] Implement P1825R0, Merged wording for P0527R1 and P1155R3

2019-10-23 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/91962] [10 Regression] ice in build_target_expr, at cp/tree.c:488

2019-10-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91962 --- Comment #3 from Marek Polacek --- Fix: --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -7386,7 +7386,8 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum, /* direct_reference_binding might have inserted a ck_qual under

[Bug c++/92206] [10 Regression] ICE in strip_typedefs, at cp/tree.c:1682 since r277281

2019-10-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92206 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/53610] C++11: constructors accept silly initializers

2019-10-24 Thread mpolacek at gcc dot gnu.org
||2019-10-24 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Marek Polacek --- Oop. Confirmed.

[Bug c++/92215] New: flawed diagnostic for bit-field with non-integral type

2019-10-24 Thread mpolacek at gcc dot gnu.org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- struct S { int *foo : 3; }; r.C:2:8: error: function definition does not declare parameters 2 | int *foo : 3; |^~~ Huh? We should say

[Bug c++/91962] [10 Regression] ice in build_target_expr, at cp/tree.c:488

2019-10-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91962 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #4 from Marek Polacek

[Bug c++/92215] flawed diagnostic for bit-field with non-integral type

2019-10-24 Thread mpolacek at gcc dot gnu.org
||2019-10-24 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Patch incoming.

[Bug c++/92134] static constinit members incorrectly compile

2019-10-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92134 --- Comment #1 from Marek Polacek --- Untested fix: --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -990,6 +990,9 @@ grokfield (const cp_declarator *declarator, else flags = LOOKUP_IMPLICIT; + if (decl_spec_seq_has_spec_p (declspecs, ds_c

[Bug c++/92058] constinit disregards non-constexpr constructor

2019-10-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92058 --- Comment #2 from Marek Polacek --- Going to be fixed by https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01777.html

[Bug c++/92221] [9/10 Regression] template argument deduction/substitution failed after "Implement P0846R0, ADL and function templates"

2019-10-25 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from Marek Polacek --- Most likely a dup of Bug 90505. *** This bug has been marked as a duplicate of bug 90505 ***

[Bug c++/90505] [9/10 Regression] g++ rejects a valid code

2019-10-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90505 Marek Polacek changed: What|Removed |Added CC||dimitar.yordanov at sap dot com --- Comm

[Bug c++/90505] [9/10 Regression] g++ rejects a valid code

2019-10-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90505 --- Comment #8 from Marek Polacek --- Test from Bug 92221: template class a { using b = int; using c = int; b d; void e() { g(d); } template static void g(f...); };

[Bug c++/90998] [9/10 Regression] ICE (segfalut) in gcc/cp/call.c compare_ics() with -std=c++17

2019-10-25 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/91581] ICE on usage requiring complete class in exception-specification of defaulted method

2019-10-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91581 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Fri Oct 25 19:11:58 2019 New Revision: 277462 URL: https://gcc.gnu.org/viewcvs?rev=277462&root=gcc&view=rev Log: PR c++/91581 - ICE in exception-specification of defaulted ctor.

[Bug c++/91581] ICE on usage requiring complete class in exception-specification of defaulted method

2019-10-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91581 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/91165] [10 Regression] error: location references block not in block tree

2019-10-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91165 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/78244] Narrowing conversion is accepted in a function template, but it should be rejected

2019-10-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78244 --- Comment #12 from Marek Polacek --- Another bit to extend the Comment 11 test: // Test OVERLOAD in a template. int id(int v) { return v; } double id(double v) { return v; } template auto f5(double v) -> decltype((S{id(v)}, 1)) { return 1; }

[Bug c++/92238] constexpr fails to compile 2d std::array in gcc 10 master

2019-10-27 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from Marek Polacek --- Going to be fixed by https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01685.html *** This bug has been marked as a duplicate of bug 91548 ***

[Bug c++/91548] [10 Regression] Regression in constexpr evaluation of std::array

2019-10-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548 Marek Polacek changed: What|Removed |Added CC||euloanty at live dot com --- Comment #9

[Bug c++/88165] error: default member initializer for 'A::B::m' required before the end of its enclosing class

2019-10-28 Thread mpolacek at gcc dot gnu.org
||2019-10-28 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Marek Polacek --- As of now, this code is still rejected.

[Bug c++/88165] error: default member initializer for 'A::B::m' required before the end of its enclosing class

2019-10-28 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88165 --- Comment #4 from Marek Polacek --- Maybe we need more delayed parsing here.

[Bug c++/88337] Implement P1002R1, P1327R1, P1330R0, C++20 relaxations of constexpr restrictions.

2019-10-28 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- P1002R1 and P1330R0 were implemented in GCC 9. Taking this PR since I'm looking into P1327R1 (for GCC 10).

[Bug c++/88337] Implement P1002R1, P1327R1, P1330R0, C++20 relaxations of constexpr restrictions.

2019-10-28 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337 --- Comment #5 from Marek Polacek --- Looks like we need to teach constexpr how to evaluate a call to __dynamic_cast.

[Bug c++/91548] [10 Regression] Regression in constexpr evaluation of std::array

2019-10-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548 --- Comment #10 from Marek Polacek --- Author: mpolacek Date: Tue Oct 29 20:34:43 2019 New Revision: 277591 URL: https://gcc.gnu.org/viewcvs?rev=277591&root=gcc&view=rev Log: PR c++/91548 - fix detecting modifying const objects for ARRAY

[Bug c++/91548] [10 Regression] Regression in constexpr evaluation of std::array

2019-10-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91548 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/90998] [9/10 Regression] ICE (segfalut) in gcc/cp/call.c compare_ics() with -std=c++17

2019-10-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998 --- Comment #4 from Marek Polacek --- Author: mpolacek Date: Tue Oct 29 21:06:21 2019 New Revision: 277593 URL: https://gcc.gnu.org/viewcvs?rev=277593&root=gcc&view=rev Log: PR c++/90998 - ICE with copy elision in init by ctor and -Wconv

[Bug c++/90998] [9 Regression] ICE (segfault) in gcc/cp/call.c compare_ics() with -std=c++17

2019-10-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998 Marek Polacek changed: What|Removed |Added Summary|[9/10 Regression] ICE |[9 Regression] ICE |(s

[Bug c++/92271] for consistency, __is_same_as should be named __is_same

2019-10-29 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c/92286] Possible improvement for -Wduplicated-cond warning

2019-10-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92286 Marek Polacek changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRME

[Bug c++/88337] Implement P1002R1, P1327R1, P1330R0, C++20 relaxations of constexpr restrictions.

2019-10-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337 --- Comment #6 from Marek Polacek --- First steps: this now compiles in c++2a: struct B { virtual void baz () {} }; struct D : B { }; constexpr bool fn () { bool ok = true; B b; B *b1 = &b; if (D *pd = dynamic_cast(b1)) ok = fals

[Bug c++/92134] static constinit members incorrectly compile

2019-10-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92134 --- Comment #2 from Marek Polacek --- Author: mpolacek Date: Wed Oct 30 18:49:59 2019 New Revision: 277636 URL: https://gcc.gnu.org/viewcvs?rev=277636&root=gcc&view=rev Log: PR c++/92134 - constinit malfunction in static data member. I

[Bug c++/92134] static constinit members incorrectly compile

2019-10-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92134 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92313] Regression: ICE since 9.2 for templates derived from range-v3 code

2019-10-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92313 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/92313] Regression: ICE since 9.2 for templates derived from range-v3 code

2019-10-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92313 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92206] [10 Regression] ICE in strip_typedefs, at cp/tree.c:1682 since r277281

2019-10-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92206 Marek Polacek changed: What|Removed |Added CC||TonyELewis at hotmail dot com --- Commen

[Bug c++/88337] Implement P1002R1, P1327R1, P1330R0, C++20 relaxations of constexpr restrictions.

2019-10-31 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337 --- Comment #7 from Marek Polacek --- Sidecast now works too: struct A { virtual void afn () {} }; struct B { virtual void bfn () {} }; struct D : A, B { }; constexpr bool fn () { bool ok = true; D d; A *a = &d; if (B *bp = dynami

[Bug c++/92339] ice at cp/typeck.c:1510

2019-11-03 Thread mpolacek at gcc dot gnu.org
||2019-11-03 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed, started with r277614.

[Bug c++/92365] [10 Regression] ice unexpected expression ‘int16_t()’ of kind cast_expr

2019-11-04 Thread mpolacek at gcc dot gnu.org
||2019-11-04 CC||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 Summary|ice unexpected expression |[10 Regression] ice |‘int16_t()’ of kind |unexpected expression

[Bug c++/92367] spurious -Wunused-but-set-parameter warning with constexpr if in a template function

2019-11-04 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #1 from Marek Polacek --- I've fixed this in GCC 10: r274982 / PR81676.

[Bug c++/91363] Implement P0960R3: Parenthesized initialization of aggregates

2019-11-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91363 --- Comment #4 from Marek Polacek --- Need to respond to Jason's feedback: https://gcc.gnu.org/ml/gcc-patches/2019-11/msg00034.html But there's very little time left for stage1 and I've been trying to get P1327 done, and then hopefully also P133

[Bug c++/92414] New: internal compiler error: tree check: expected constructor, have error_mark in cxx_eval_store_expression, at cp/constexpr.c:4009

2019-11-07 Thread mpolacek at gcc dot gnu.org
Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- struct A { virtual void a(); }; struct B : A

[Bug c++/92414] internal compiler error: tree check: expected constructor, have error_mark in cxx_eval_store_expression, at cp/constexpr.c:4009

2019-11-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92414 Marek Polacek changed: What|Removed |Added Keywords||ice-on-invalid-code Status|U

[Bug c++/92427] Initializing an element which has a zero-length array of a type-with-destructor causes an internal compiler error

2019-11-08 Thread mpolacek at gcc dot gnu.org
||2019-11-08 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/92427] Initializing an element which has a zero-length array of a type-with-destructor causes an internal compiler error

2019-11-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92427 --- Comment #2 from Marek Polacek --- GCC 5 says: 92427.C:11:25: error: too many initializers for ‘C [0]’ } y = { 1, { { 2, 3 } } }; ^ then since r231665 we accepted the test. Then since r233126 92427.C: In destructor

[Bug c++/92058] constinit disregards non-constexpr constructor

2019-11-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92058 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Fri Nov 8 21:40:45 2019 New Revision: 277990 URL: https://gcc.gnu.org/viewcvs?rev=277990&root=gcc&view=rev Log: PR c++/92058 - constinit malfunction in static data member.

[Bug c++/92058] constinit disregards non-constexpr constructor

2019-11-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92058 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92215] flawed diagnostic for bit-field with non-integral type

2019-11-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92215 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92215] flawed diagnostic for bit-field with non-integral type

2019-11-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92215 --- Comment #2 from Marek Polacek --- Author: mpolacek Date: Fri Nov 8 21:48:47 2019 New Revision: 277991 URL: https://gcc.gnu.org/viewcvs?rev=277991&root=gcc&view=rev Log: PR c++/92215 - flawed diagnostic for bit-field with non-integra

[Bug c++/90998] [9 Regression] ICE (segfault) in gcc/cp/call.c compare_ics() with -std=c++17

2019-11-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Fri Nov 8 21:52:39 2019 New Revision: 277992 URL: https://gcc.gnu.org/viewcvs?rev=277992&root=gcc&view=rev Log: PR c++/90998 - ICE with copy elision in init by ctor and -Wconv

[Bug c++/90998] [9 Regression] ICE (segfault) in gcc/cp/call.c compare_ics() with -std=c++17

2019-11-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90998 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92426] ICE on spaceship declaration plus other P1185R2 interaction issue

2019-11-08 Thread mpolacek at gcc dot gnu.org
||2019-11-08 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed: 92426.C: In member function ‘constexpr auto Basics::operator<=>(const Basics&) const’:

[Bug c++/92443] [10 Regression] ICE in joust, at cp/call.c:11166

2019-11-10 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2019-11-10 CC||jason at gcc dot gnu.org, ||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0

[Bug c++/88337] Implement P1002R1, P1327R1, P1330R0, C++20 relaxations of constexpr restrictions.

2019-11-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #8 from Marek Polacek

[Bug c++/88337] Implement P1002R1, P1327R1, P1330R0, C++20 relaxations of constexpr restrictions.

2019-11-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88337 --- Comment #9 from Marek Polacek --- Not entirely true, this template case should be accepted: #include struct B { virtual void f(); }; struct B2 : B { }; template constexpr bool fn () { constexpr B2 b2; static_assert(&typeid(b2) == &typ

[Bug c++/89070] Attribute [[nodiscard]] should be ignored in unevaluated contexts

2019-11-12 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/92485] g++ ICE unexpected expression '' of kind asm_expr

2019-11-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92485 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/92485] g++ ICE unexpected expression '' of kind asm_expr

2019-11-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92485 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92485] g++ ICE unexpected expression '' of kind asm_expr

2019-11-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92485 Marek Polacek changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug c++/89070] Attribute [[nodiscard]] should be ignored in unevaluated contexts

2019-11-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89070 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Wed Nov 13 15:59:53 2019 New Revision: 278147 URL: https://gcc.gnu.org/viewcvs?rev=278147&root=gcc&view=rev Log: PR c++/89070 - bogus [[nodiscard]] warning in SFINAE. This is

[Bug c++/89070] Attribute [[nodiscard]] should be ignored in unevaluated contexts

2019-11-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89070 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/91353] Implement P1331R2: Permitting trivial default initialization in constexpr contexts

2019-11-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91353 --- Comment #2 from Marek Polacek --- The quux case: CONSTRUCTOR_NO_CLEARING is cleared here 2154 /* The result of a constexpr function must be completely initialized. */ 2155 if (TREE_CODE (result) == CONSTRUCTOR) 2156 clear_no_implici

[Bug c++/92504] ICE on gcc-9 -fopenmp: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'baselink' in get_inner_reference, at expr.c:7238

2019-11-13 Thread mpolacek at gcc dot gnu.org
||2019-11-13 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed.

[Bug c++/92504] ICE on gcc-9 -fopenmp: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'baselink' in get_inner_reference, at expr.c:7238

2019-11-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92504 Marek Polacek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c++/92505] Using mutable in constexpr

2019-11-14 Thread mpolacek at gcc dot gnu.org
||2019-11-14 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Looks like this never worked.

[Bug c++/92505] Using mutable in constexpr

2019-11-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92505 --- Comment #2 from Marek Polacek --- cxx_eval_component_reference has: 2967 if (DECL_MUTABLE_P (part)) 2968 { 2969 if (!ctx->quiet) 2970 error ("mutable %qD is not usable in a constant expression", part); 2971 *non_cons

<    3   4   5   6   7   8   9   10   11   12   >