[Bug c++/94038] New: Compiling with -Wall causes function template to get needlessly instantiated

2020-03-04 Thread ppalka at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- With GCC trunk: $ cat sa.cc template constexpr int foo() { static_assert(T(1) == 0); return 0; } constexpr int bar(int a

[Bug libstdc++/93978] A snippet using views::join fails to compile with -O1, but succeeds with -O0

2020-03-04 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93978 Patrick Palka changed: What|Removed |Added Depends on||94038 --- Comment #1 from Patrick Palka

[Bug c++/94038] Compiling with -Wall causes function template body to get needlessly instantiated

2020-03-04 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94038 --- Comment #2 from Patrick Palka --- (In reply to Marek Polacek from comment #1) > > This seems to be a regression from GCC 9. > > Are you sure? I see the same thing with GCC 6. Oops, you're right, it's not a regression.

[Bug c++/93729] [concepts] binding bit-field to lvalue reference in requires expression should be SFINAE

2020-03-05 Thread ppalka at gcc dot gnu.org
||2020-03-05 CC||ppalka at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Patrick Palka --- Confirmed. The fix

[Bug c++/93729] [concepts] binding bit-field to lvalue reference in requires expression should be SFINAE

2020-03-08 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93729 Patrick Palka changed: What|Removed |Added Target Milestone|--- |10.0 Status|ASSIGNED

[Bug c++/94066] [8/9/10 Regression] ICE (starting/ending union member lifetime) in cxx_eval_bare_aggregate, at cp/constexpr.c:3790 since r6-7592

2020-03-08 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94066 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/94066] [8/9/10 Regression] ICE (starting/ending union member lifetime) in cxx_eval_bare_aggregate, at cp/constexpr.c:3790 since r6-7592

2020-03-08 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94066 --- Comment #5 from Patrick Palka --- Also if we add an explicitly defaulted constructor "U() = default;" to U in the original test case, then using GCC 9 /w -std=c++17 we get: 94066.C:16:25: in ‘constexpr’ expansion of ‘foo((&*this))’ 94066.C

[Bug c++/94107] New: Infinite loop with malformed requires-expression inside a static_assert

2020-03-09 Thread ppalka at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat loop.C static_assert(requires { ); $ g++ -std=c++2a loop.C loop.C:1:26: error: expected primary-expression before ‘)’ token

[Bug c++/94126] New: [concepts] suboptimal diagnostic when type after substitution is ill-formed

2020-03-10 Thread ppalka at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat disj.cc template using blah = T::type; template concept C = requires (T t) { t + 0; }; template concept D = C || C

[Bug c++/93805] [8/9/10 Regression] A suspicious -Werror=noexcept warning since r8-2461-g9fb82e652cee118b

2020-03-11 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93805 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/93805] [8/9/10 Regression] A suspicious -Werror=noexcept warning since r8-2461-g9fb82e652cee118b

2020-03-12 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93805 --- Comment #3 from Patrick Palka --- Reduced test case: $ cat 93805.C struct B { B() {} }; struct C { B b = B(); }; C c; $ g++ -Wnoexcept 93805.C 93805.C:11:3: warning: noexcept-expression evaluates to ‘false’ because of a call to ‘B::B()

[Bug c++/92010] [8/9/10 Regression] gcc internal error since 8x on warning write-strings

2020-03-12 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/92010] [8/9/10 Regression] gcc internal error since 8x on warning write-strings

2020-03-12 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #5 from Patrick Palka --- The ICE seems to be revealing a latent issue: In the following example (which GCC accepts), according to the static_assert labelled (1), the type of t is const int*, but according to the static_assert labell

[Bug c++/92010] [8/9/10 Regression] gcc internal error since 8x on warning write-strings

2020-03-12 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #6 from Patrick Palka --- (In reply to Patrick Palka from comment #5) > The ICE seems to be revealing a latent issue: In the following example > (which GCC accepts), according to the static_assert labelled (1), the type > of t is con

[Bug c++/67960] [8/9 Regression] Prefixing a function with [[deprecated]] produces multiple warnings

2020-03-13 Thread ppalka at gcc dot gnu.org
||ppalka at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Known to fail|10.0| Summary|[8/9/10 Regression] |[8/9 Regression] Prefixing |Prefixing a function with

[Bug c++/94066] [8/9/10 Regression] ICE (starting/ending union member lifetime) in cxx_eval_bare_aggregate, at cp/constexpr.c:3790 since r6-7592

2020-03-16 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94066 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/92010] [8/9/10 Regression] gcc internal error since 8x on warning write-strings

2020-03-17 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #7 from Patrick Palka --- (In reply to Patrick Palka from comment #6) > (In reply to Patrick Palka from comment #5) > > The ICE seems to be revealing a latent issue: In the following example > > (which GCC accepts), according to the

[Bug c++/94205] New: ICE in cxx_eval_constant_expression with 'this'-capturing lambda inside an NSDMI

2020-03-17 Thread ppalka at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat ice.C struct S { int a = [this] { this->a = 5; return 6; } (); }; constexpr S s = {}; $ g++ -st

[Bug c++/94219] New: ICE in cxx_eval_bare_aggregate, at cp/constexpr.c:3790

2020-03-18 Thread ppalka at gcc dot gnu.org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat 94066-struct.C struct A { long x; }; struct U; constexpr A foo(U *up); struct U { // struct instead of union A a = foo(this); int y; }; constexpr A foo

[Bug c++/69694] type incomplete depending if constructing function is templated

2020-03-20 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69694 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/90880] compile error instead of SFINAE with non-public member variables

2020-03-20 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90880 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/90711] [9/10 Regression] Failing SFINAE from unrelated struct since r9-6794

2020-03-23 Thread ppalka at gcc dot gnu.org
||struct since r9-6794 Known to fail||10.0, 9.3.0 Last reconfirmed||2020-03-23 CC||jason at redhat dot com, ||ppalka at gcc dot

[Bug c++/93805] [8/9 Regression] A suspicious -Werror=noexcept warning since r8-2461-g9fb82e652cee118b

2020-03-23 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93805 Patrick Palka changed: What|Removed |Added Summary|[8/9/10 Regression] A |[8/9 Regression] A |su

[Bug c++/67960] [8/9 Regression] Prefixing a function with [[deprecated]] produces multiple warnings

2020-03-24 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67960 --- Comment #11 from Patrick Palka --- (In reply to Eric Gallager from comment #10) > (In reply to Patrick Palka from comment #8) > > Fixed on trunk by r10-7159. > > so... keeping open for backports, I take it? Probably yes.

[Bug c++/94066] [8/9 Regression] ICE (starting/ending union member lifetime) in cxx_eval_bare_aggregate, at cp/constexpr.c:3790 since r6-7592

2020-03-24 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94066 Patrick Palka changed: What|Removed |Added Summary|[8/9/10 Regression] ICE |[8/9 Regression] ICE |

[Bug c++/94265] wrong warning "duplicated 'if' condition"

2020-03-24 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94265 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94252] Can't use a lambda in a requires expression

2020-03-24 Thread ppalka at gcc dot gnu.org
||10.0 Last reconfirmed||2020-03-24 Ever confirmed|0 |1 CC||ppalka at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #2 from Patrick Palka

[Bug c++/94252] Can't use a lambda in a requires expression

2020-03-24 Thread ppalka at gcc dot gnu.org
at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94265] wrong warning "duplicated 'if' condition"

2020-03-25 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94265 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94332] New: [concepts] requires-expression that contains a requires-expression incorrectly evaluates to false

2020-03-25 Thread ppalka at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat requires-requires.C template requires B struct X { }; template concept C = requires { X

[Bug c++/94306] Improve diagnostic when "requires" used instead of "requires requires" and add fix-it

2020-03-25 Thread ppalka at gcc dot gnu.org
|ASSIGNED CC||ppalka at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Target Milestone|--- |10.0 Last reconfirmed||2020-03-25

[Bug c++/94252] Can't use a lambda in a requires expression

2020-03-28 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94252 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94306] Improve diagnostic when "requires" used instead of "requires requires" and add fix-it

2020-03-28 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94306 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94126] [concepts] suboptimal diagnostic when type after substitution is ill-formed

2020-03-29 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94126 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c++/94034] [10 Regression] Broken diagnostic: 'result_decl' not supported by dump_expr

2020-03-31 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94034 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/94414] only `--` gives constexpr

2020-03-31 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94414 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/94219] ICE in cxx_eval_bare_aggregate, at cp/constexpr.c:3790

2020-04-01 Thread ppalka at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94034] [10 Regression] Broken diagnostic: 'result_decl' not supported by dump_expr

2020-04-02 Thread ppalka at gcc dot gnu.org
at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94470] New: Constexpr variable initialization with self-modifying constructor incorrectly rejected since r7-6728

2020-04-03 Thread ppalka at gcc dot gnu.org
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C struct X { int b = 0; int c = ((this->b=1), 1); }; constexpr

[Bug c++/94470] [8/9/10 Regression] Constexpr variable initialization with self-modifying constructor incorrectly rejected since r7-6728

2020-04-03 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94470 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to fail|

[Bug c++/93211] equivalence of dependent function calls doesn't check if the call is eligible for ADL

2020-04-03 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93211 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/94205] [8/9/10 Regression] ICE in cxx_eval_constant_expression with 'this'-capturing lambda inside an NSDMI since r8-1251

2020-04-04 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94205 Bug 94205 depends on bug 94219, which changed state. Bug 94219 Summary: ICE in cxx_eval_bare_aggregate, at cp/constexpr.c:3790 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94219 What|Removed |Added -

[Bug c++/94219] ICE in cxx_eval_bare_aggregate, at cp/constexpr.c:3790

2020-04-04 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94219 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94205] [8/9 Regression] ICE in cxx_eval_constant_expression with 'this'-capturing lambda inside an NSDMI since r8-1251

2020-04-04 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94205 Patrick Palka changed: What|Removed |Added Summary|[8/9/10 Regression] ICE in |[8/9 Regression] ICE in

[Bug c++/94499] New: [concepts] bogus "local variable may not appear in this context" error

2020-04-06 Thread ppalka at gcc dot gnu.org
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C template constexpr bool bar(bool b = requires (T t) { *t; }) { return b; } $ g++ -std=c++2a testcase.C

[Bug c++/94501] New: bogus "no matches converting function ... to type ..." error with variadic function template

2020-04-06 Thread ppalka at gcc dot gnu.org
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C template void foo(Ts...); int main() { void (*f)(int*) = foo; } $ g++ -std=c++11

[Bug c++/90996] [8/9/10 Regression] ICE in gimplify_expr, at gimplify.c:13495

2020-04-06 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90996 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/90996] [8/9 Regression] ICE in gimplify_expr, at gimplify.c:13495

2020-04-07 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90996 Patrick Palka changed: What|Removed |Added Summary|[8/9/10 Regression] ICE in |[8/9 Regression] ICE in

[Bug c++/94521] New: Infinite loop with decltype of function parameter of type decltype([]{})

2020-04-07 Thread ppalka at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C template void spam(decltype([]{}) *s) { static_assert(__is_same(int, decltype(s))); } void foo() { spam

[Bug c++/94480] [10 Regression] ICE in cp_parser_abort_tentative_parse, at cp/parser.c:31858

2020-04-07 Thread ppalka at gcc dot gnu.org
||ppalka at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94480] [10 Regression] ICE in cp_parser_abort_tentative_parse, at cp/parser.c:31858

2020-04-07 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94480 Patrick Palka changed: What|Removed |Added Assignee|ppalka at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug c++/92010] [8/9 Regression] gcc internal error since 8x on warning write-strings

2020-04-08 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 Patrick Palka changed: What|Removed |Added Summary|[8/9/10 Regression] gcc |[8/9 Regression] gcc |

[Bug c++/94034] [10 Regression] Broken diagnostic: 'result_decl' not supported by dump_expr

2020-04-08 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94034 --- Comment #5 from Patrick Palka --- Here is a rejects-valid testcase caused by the same underlying issue: $ cat testcase.C struct A { A *p = this; int n; }; constexpr A foo() { return {}; } constexpr A bar() { A a = foo(); a.p->n = 5;

[Bug c++/94537] New: Possibly wrong code with mandatory copy elision and 'this' pointer arithmetic inside an NSDMI

2020-04-08 Thread ppalka at gcc dot gnu.org
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C struct A { A *p = this-1; int n = p->n; }; constexpr A foo() { return

[Bug c++/94537] Possibly wrong code with mandatory copy elision and 'this' pointer arithmetic inside an NSDMI

2020-04-08 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94537 --- Comment #1 from Patrick Palka --- We also reject a constexpr version of the testcase: $ cat testcase.C struct A { A *p = this-1; int n = p->n; }; constexpr A foo() { return {}; } constexpr A a[2] = { {nullptr, 5}, foo() }; static_assert(

[Bug c++/94537] Possibly wrong code with mandatory copy elision and 'this' pointer arithmetic inside an NSDMI

2020-04-08 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94537 --- Comment #2 from Patrick Palka --- Simpler runtime testcase: $ cat testcase.C struct A { A *p = this; int m = 1; }; A foo() { return {}; } int main() { A a = foo(); a.p->m++; if (a.m != 2) __builtin_abort (); } $ g++ -std=c++17

[Bug middle-end/94539] New: gcc.dg/alias-14.c fails on gcc 10, succeeds on gcc 9, when turned into an execution test

2020-04-09 Thread ppalka at gcc dot gnu.org
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- The test gcc/testsuite/gcc.dg/alias-14.c fails when compiled and executed with gcc 10, and succeeds when

[Bug middle-end/94539] [10 Regression] gcc.dg/alias-14.c fails on gcc 10, succeeds on gcc 9, when turned into an execution test

2020-04-09 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94539 --- Comment #3 from Patrick Palka --- Bisection seems to be pointing to r10-779

[Bug c++/94521] Infinite loop with decltype of function parameter of type decltype([]{})

2020-04-09 Thread ppalka at gcc dot gnu.org
at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94470] [8/9/10 Regression] Constexpr variable initialization with self-modifying constructor incorrectly rejected since r7-6728

2020-04-13 Thread ppalka at gcc dot gnu.org
at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/85278] [concepts] Garbled diagnostic

2020-04-13 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85278 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94521] Infinite loop with decltype of function parameter of type decltype([]{})

2020-04-13 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94521 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94470] [8/9 Regression] Constexpr variable initialization with self-modifying constructor incorrectly rejected since r7-6728

2020-04-13 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94470 Patrick Palka changed: What|Removed |Added Summary|[8/9/10 Regression] |[8/9 Regression] Constexpr

[Bug c++/94034] [10 Regression] Broken diagnostic: 'result_decl' not supported by dump_expr

2020-04-14 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94034 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

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

2020-04-14 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 85278, which changed state. Bug 85278 Summary: [concepts] Garbled diagnostic https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85278 What|Removed |Added --

[Bug c++/85278] [concepts] Garbled diagnostic

2020-04-14 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85278 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

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

2020-04-14 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 93207, which changed state. Bug 93207 Summary: [concepts] Variadic concepts refuse to compile when function definition is not inline https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93207 What|Removed

[Bug c++/93207] [concepts] Variadic concepts refuse to compile when function definition is not inline

2020-04-14 Thread ppalka at gcc dot gnu.org
|--- |FIXED CC||ppalka at gcc dot gnu.org Target Milestone|--- |10.0 --- Comment #4 from Patrick Palka --- This seems to be already fixed for GCC 10.

[Bug c++/94475] [9/10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in element_mode, at tree.c:13813

2020-04-14 Thread ppalka at gcc dot gnu.org
||ppalka at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94475] [9 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in element_mode, at tree.c:13813

2020-04-16 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94475 Patrick Palka changed: What|Removed |Added Summary|[9/10 Regression] ICE: tree |[9 Regression] ICE: tree

[Bug c++/94483] [9/10 Regression] ICE: tree check: expected type_pack_expansion, have error_mark in add_capture, at cp/lambda.c:607

2020-04-16 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94483 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/94610] 'invalid use of incomplete type' error which show an alias, but without the real type

2020-04-16 Thread ppalka at gcc dot gnu.org
|NEW Last reconfirmed||2020-04-16 CC||ppalka at gcc dot gnu.org --- Comment #1 from Patrick Palka --- Good point, confirmed.

[Bug c++/94483] [9/10 Regression] ICE: tree check: expected type_pack_expansion, have error_mark in add_capture, at cp/lambda.c:607

2020-04-16 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94483 Patrick Palka changed: What|Removed |Added Keywords|error-recovery, |ice-on-valid-code |ice

[Bug c++/88754] [8/9/10 Regression] Constructor call wrongly assumed to be a variable declaration

2020-04-16 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88754 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/92187] [concepts] An abbreviated function template ignores type constraint in some circumstances

2020-04-16 Thread ppalka at gcc dot gnu.org
at gcc dot gnu.org |ppalka at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2020-04-17 Target Milestone|--- |10.0 CC||ppalka at gcc dot gnu.org

[Bug c++/94632] [10 Regression] canonical types differ for identical types since r10-7622-g12f55e030ed068d5

2020-04-17 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94632 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94632] [10 Regression] canonical types differ for identical types since r10-7622-g12f55e030ed068d5

2020-04-17 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94632 --- Comment #2 from Patrick Palka --- Smaller testcase that exhibits the ICE: template struct b; template class c { template static void d(f e, b x); public: static const bool h = false; }; bool y = c::h;

[Bug c++/94483] [9 Regression] ICE: tree check: expected type_pack_expansion, have error_mark in add_capture, at cp/lambda.c:607

2020-04-17 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94483 Patrick Palka changed: What|Removed |Added Summary|[9/10 Regression] ICE: tree |[9 Regression] ICE: tree

[Bug c++/88754] [8/9 Regression] Constructor call wrongly assumed to be a variable declaration

2020-04-17 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88754 Patrick Palka changed: What|Removed |Added Summary|[8/9/10 Regression] |[8/9 Regression] |Cons

[Bug c++/92187] [concepts] An abbreviated function template ignores type constraint in some circumstances

2020-04-18 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92187 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/94632] [10 Regression] canonical types differ for identical types since r10-7622-g12f55e030ed068d5

2020-04-18 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94632 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/94628] [8/9/10 Regression] ICE in invalid_nonstatic_memfn_p at cp/typeck.c:1979 since r9-640-g1268ecc26fc1289b

2020-04-18 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94628 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/94628] [8/9/10 Regression] ICE in invalid_nonstatic_memfn_p at cp/typeck.c:1979 since r9-640-g1268ecc26fc1289b

2020-04-18 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94628 --- Comment #4 from Patrick Palka --- (In reply to Patrick Palka from comment #3) > Reduced rejects-valid testcase: > > int f(int, int); > int f(int); > > template > auto select(Args... args) -> decltype(f(args...)) > { > if constexpr(sizeof.

[Bug c++/91849] Misleading diagnostic message when binding reference to unrelated type

2020-04-18 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/94628] [8/9/10 Regression] ICE in invalid_nonstatic_memfn_p at cp/typeck.c:1979 since r9-640-g1268ecc26fc1289b

2020-04-19 Thread ppalka at gcc dot gnu.org
at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94549] [10 Regression] Inherited and constrained constructors are "ambiguous" even if they aren't

2020-04-20 Thread ppalka at gcc dot gnu.org
at gcc dot gnu.org |ppalka at gcc dot gnu.org CC||ppalka at gcc dot gnu.org

[Bug c++/94628] [8/9 Regression] ICE in invalid_nonstatic_memfn_p at cp/typeck.c:1979 since r9-640-g1268ecc26fc1289b

2020-04-20 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94628 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|NEW Summary|[8/9/10 Regressio

[Bug c++/94645] [10 Regression][concepts] incorrect concept evaluation with decltype, plus internal error since r10-7554-gf1ad7bac76b66257

2020-04-21 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94645 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94645] [10 Regression][concepts] incorrect concept evaluation with decltype, plus internal error since r10-7554-gf1ad7bac76b66257

2020-04-21 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94645 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|ppalka at gcc

[Bug c++/94597] [10 Regression] ICE while using a concept checking for user defined conversion operator since r10-3735-gcb57504a55015891

2020-04-21 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94597 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94597] [10 Regression] ICE while using a concept checking for user defined conversion operator since r10-3735-gcb57504a55015891

2020-04-21 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94597 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/94645] [10 Regression][concepts] incorrect concept evaluation with decltype, plus internal error since r10-7554-gf1ad7bac76b66257

2020-04-21 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94645 --- Comment #7 from Patrick Palka --- As in PR94597, I think the testcases here in #c0 and #c2 might be invalid as-is -- the requirement "t.cend;" should probably be "t.cend();", and we reject the former since r10-7554. With that minor change we

[Bug c++/94549] [10 Regression] Inherited and constrained constructors are "ambiguous" even if they aren't

2020-04-21 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94549 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/94645] [10 Regression][concepts] incorrect concept evaluation with decltype, plus internal error since r10-7554-gf1ad7bac76b66257

2020-04-21 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94645 --- Comment #9 from Patrick Palka --- Thanks for the reduced testcases. The problem in #c8 seems to start in grokfndecl() when processing the operator() of the lambda. During grokfndecl on the operator(), processing_template_decl is 1 but temp

[Bug c++/94719] New: ICE with constrained inherited constructor template from class template since r10-7859

2020-04-22 Thread ppalka at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C template struct bar { template requires (N == 5) bar() { } }; template struct foo : bar

[Bug c++/94719] ICE with constrained inherited constructor template from class template since r10-7859

2020-04-22 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94719 --- Comment #1 from Patrick Palka --- I am testing a fix.

[Bug c++/94719] ICE with constrained inherited constructor template from class template since r10-7859

2020-04-22 Thread ppalka at gcc dot gnu.org
|--- |10.0 Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED Keywords||ice-on-valid-code Resolution|--- |FIXED --- Comment

[Bug c++/94645] [10 Regression][concepts] incorrect concept evaluation with decltype, plus internal error since r10-7554-gf1ad7bac76b66257

2020-04-23 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94645 --- Comment #10 from Patrick Palka --- Oops, it turns out the ICEs I was seeing in the cmcstl2 testsuite with the change in #c9 were actually due to PR94719, which has since been fixed. The cmcstl2 testsuite now compiles fine with or without the

[Bug c++/94645] [10 Regression][concepts] incorrect concept evaluation with decltype, plus internal error since r10-7554-gf1ad7bac76b66257

2020-04-23 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94645 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/91706] [8/9/10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in equate_type_number_to_die, at dwarf2out.c:5782

2020-04-24 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91706 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

  1   2   3   4   5   6   7   8   9   10   >