[Bug c++/93425] [9/10 Regression] Template parameter deduction failure when template parameters have template template parameter since r9-3807-g5d9a0e3b99e31a21

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93425 Marek Polacek changed: What|Removed |Added Priority|P3 |P2

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #6 from Marek Polacek --- (In reply to Adam Jackson from comment #5) > (In reply to Martin Sebor from comment #4) > > It seems like the reporter might be conflating the forming of a past-the-end > > pointer (what the GRABEXT macro doe

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #9 from Marek Polacek --- Created attachment 47778 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47778&action=edit original .i file Attaching the original .i file

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #10 from Marek Polacek --- Cross-compiled s390x-redhat-linux gcc shows that the warning appears with -mtune=z13, but not without it (using -O2).

[Bug c++/93596] [10 Regression] ICE related to templates and vectors.

2020-02-05 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-02-05 CC||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 Summary|ICE related to templates|[10 Regression] ICE related

[Bug c++/93596] [10 Regression] ICE related to templates and vectors.

2020-02-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93596 --- Comment #3 from Marek Polacek --- Started with r10-4719-g9b41ebbcdf9e33285a0eebeb7c841afe20e4a7c1 commit 9b41ebbcdf9e33285a0eebeb7c841afe20e4a7c1 Author: Jason Merrill Date: Fri Nov 15 09:51:05 2019 -0500 Implement P1816R0, class tem

[Bug c++/93597] [10 Regression] ICE in get_fns since r10-6219

2020-02-05 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 --- Comment #1 from Marek Polacek --- Looks like missing is_overloaded_fn.

[Bug c++/93559] [10 Regression] ICE: side-effects element in no-side-effects CONSTRUCTOR

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

[Bug preprocessor/55971] Preprocessor macros with C++11 raw string literals fail to compile

2020-02-06 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org --- Comment #7 from Marek Polacek --- An even simpler test: #define MY_RAW_STRING R"(My raw string multiline)" We still don't handle it right.

[Bug c++/93617] Ternary operator calling a noreturn function should not cause type errors

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

[Bug c++/93597] [10 Regression] ICE in get_fns since r10-6219

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

[Bug c++/91212] [8/9/10 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073

2020-02-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91212 --- Comment #6 from Marek Polacek --- (In reply to Jason Merrill from comment #5) > I think this is a bug in pre-P1825R0 handling of the restriction that the > first overload resolution fails "if the type of the first parameter of the > selected

[Bug c++/91465] [9/10 Regression] unexpected expression of kind overload (ICE)

2020-02-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #6 from Marek Polacek

[Bug c++/92947] Parenthesized aggregate initialization doesn't work with the library types it's supposed to work with

2020-02-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92947 --- Comment #4 from Marek Polacek --- Sorry, looking into this again. A problem I see with my fix is that with it this assert fails: struct A { }; struct B { }; static_assert (!__is_trivially_constructible(A, B), ""); i.e. we say __is_triviall

[Bug c++/79314] friend function with qualified name definition

2020-02-07 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #2 from Marek Polacek --- Properly rejected since r10-1269-g32833537fcfcc320c8a149641b12d49d23e94609

[Bug c++/71755] friend function may not be defined inside a class using a qualified name but GCC allows that

2020-02-07 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #1 from Marek Polacek --- Properly rejected since r10-1269-g32833537fcfcc320c8a149641b12d49d23e94609

[Bug c++/92947] Parenthesized aggregate initialization doesn't work with the library types it's supposed to work with

2020-02-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92947 Marek Polacek changed: What|Removed |Added Keywords||patch, rejects-valid --- Comment #5 from

[Bug c++/92947] Parenthesized aggregate initialization doesn't work with the library types it's supposed to work with

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

[Bug c++/93639] [c++2a] Segfault on non type template parameter and consteval (master)

2020-02-10 Thread mpolacek at gcc dot gnu.org
||2020-02-10 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Marek Polacek --- Confirmed. G++ 7 ICEs too with -std=c++17, so not caused by consteval.

[Bug tree-optimization/93674] [8/9/10 Regression] GCC eliminates conditions it should not, when strict-enums is on

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

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-11 Thread mpolacek at gcc dot gnu.org
||2020-02-11 CC||mpolacek at gcc dot gnu.org Target Milestone|--- |8.4 Summary|crash in build_value_init |[8/9/10 Regression] crash ||in build_value_init

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 Marek Polacek changed: What|Removed |Added Known to work||4.9.4 --- Comment #2 from Marek Polacek

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 --- Comment #3 from Marek Polacek --- We hit this assert in build_value_init: /* The AGGR_INIT_EXPR tweaking below breaks in templates. */ gcc_assert (!processing_template_decl || (SCALAR_TYPE_P (type) || TREE_CODE (type) == A

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 --- Comment #4 from Marek Polacek --- A bit shorter test: struct P { int x = 0; }; template struct S { S() { new P[2][2]; } };

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 Marek Polacek changed: What|Removed |Added Priority|P3 |P2

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 --- Comment #5 from Marek Polacek --- We might get away with just avoiding value-init in a template: --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -4520,7 +4520,7 @@ build_vec_init (tree base, tree maxindex, tree init, We do need to keep goi

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-11 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/93684] [8/9/10 Regression] ICE in cp_lexer_consume_token, at cp/parser.c:1120

2020-02-11 Thread mpolacek at gcc dot gnu.org
||2020-02-11 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Goes back to r0-119371-ge28d52cffbb2abc7a5764ed4c97a25c376913fee

[Bug c++/93684] [8/9/10 Regression] ICE in cp_lexer_consume_token, at cp/parser.c:1120

2020-02-11 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/93191] Conversions to arrays of unknown bound P0388 Fails for variadic args

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c++/93689] ICE with default argument in lambda used as non type template argument

2020-02-11 Thread mpolacek at gcc dot gnu.org
||2020-02-11 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. $ ./cc1plus -quiet 93689.C -std=c++2a 93689.C: In instantiation of ‘int f() [with auto Z

[Bug c++/93689] ICE with default argument in lambda used as non type template argument

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93689 --- Comment #2 from Marek Polacek --- The test was rejected with various errors, then with r9-4045-g0c1e0d63fe0ceabbd04384070f3b59f8bf50de09 we got this ICE: 93689.C: In function ‘int f() [with auto Z = main()::{}]’: 93689.C:5:13: internal compi

[Bug c++/93689] ICE with default argument in lambda used as non type template argument

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93689 --- Comment #4 from Marek Polacek --- That's hard to say without really understanding what the issue is, but I'm afraid this might not be the best first issue -- it involves some pretty convoluted features, plus it seems there are two issues (tha

[Bug c++/93689] ICE with default argument in lambda used as non type template argument

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93689 --- Comment #5 from Marek Polacek --- Actually the issue might be just one, even the gimplifier ICE seems to be caused by a CAST_EXPR leaking where it should not. Maybe we fail to substitute default arguments in lambdas in a template parameter l

[Bug c++/93684] [8/9 Regression] ICE in cp_lexer_consume_token, at cp/parser.c:1120

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

[Bug c++/88819] ICE (segfault) when compiling C++ code with -std=c++2a

2020-02-12 Thread mpolacek at gcc dot gnu.org
|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 --- Comment #2 from Marek Polacek --- Fixed by r10-1975-g59febe0ece37bedab7f42ae51b9f2b7a372d2950, will add the test.

[Bug c++/88819] ICE (segfault) when compiling C++ code with -std=c++2a

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

[Bug c++/89953] ICE in nothrow_spec_p, at cp/except.c:1244

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

[Bug c++/93710] poor location in diagnostics of messages about array initializers

2020-02-12 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-02-12 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed.

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

2020-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #2 from Marek Polacek --- template void foo(const T t = "; ") { } int main() { foo (); } $ ./cc1plus -quiet 92010.C 92010.C: In function ‘int main()’: 92010.C:8:8: internal compiler error: in tsubst_default_argument, at cp/pt.c:1

[Bug c++/93710] poor location in diagnostics of messages about array initializers

2020-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93710 --- Comment #2 from Marek Polacek --- With --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -4172,8 +4172,9 @@ build_user_type_conversion_1 (tree totype, tree expr, int flags, if (complain & tf_error) { auto_diagnostic_group d; -

[Bug c++/93710] poor location in diagnostics of messages about array initializers

2020-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93710 --- Comment #3 from Marek Polacek --- For the whole testcase with the patch we generate: 93710-2.C:6:3: error: conversion from ‘long int’ to ‘A’ is ambiguous 6 | 0L, | ^~ 93710-2.C:1:21: note: candidate: ‘A::A(char*)’ 1 | struc

[Bug c++/93191] Conversions to arrays of unknown bound P0388 Fails for variadic args

2020-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191 --- Comment #3 from Marek Polacek --- Thanks Will. I think I'll email CWG and ask about it.

[Bug c++/93710] poor location in diagnostics of messages about array initializers

2020-02-12 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/93712] [10 Regression] ICE in convert_like_real, at cp/call.c:7466

2020-02-12 Thread mpolacek at gcc dot gnu.org
|ASSIGNED Last reconfirmed||2020-02-12 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Target Milestone|--- |10.0

[Bug c++/93713] [10 Regression] ICE in equivalently_constrained, at cp/constraint.cc:2949

2020-02-12 Thread mpolacek at gcc dot gnu.org
||2020-02-12 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/93713] [10 Regression] ICE in equivalently_constrained, at cp/constraint.cc:2949

2020-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93713 --- Comment #2 from Marek Polacek --- Started with r10-3735-gcb57504a550158913258e5be8ddb991376475efb commit cb57504a550158913258e5be8ddb991376475efb Author: Jason Merrill Date: Wed Oct 9 13:20:32 2019 -0400 Update the concepts implement

[Bug c++/85723] [C++17][DR 1496] __is_trivial intrinsic fails with no trivial non-deleted default c'tor

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

[Bug c++/93712] [10 Regression] ICE in convert_like_real, at cp/call.c:7466

2020-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93712 --- Comment #2 from Marek Polacek --- Specifically caused by this hunk: @@ -1066,7 +1069,7 @@ build_array_conv (tree type, tree ctor, int flags, tsubst_flags_t complain) c->rank = rank; c->user_conv_p = user; c->bad_p = bad; - c->u.nex

[Bug c++/93710] poor location in diagnostics of messages about array initializers

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

[Bug c++/93789] [8/9/10 Regression] internal compiler error: in tree_to_uhwi, at tree.c:7361

2020-02-17 Thread mpolacek at gcc dot gnu.org
||ice-on-invalid-code Last reconfirmed||2020-02-17 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++/93807] -std=c++2a allows to omit out-of-class declaration in template class

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

[Bug c/93812] [9/10 Regression] ICE in get_constant, at c-family/c-format.c:325

2020-02-18 Thread mpolacek at gcc dot gnu.org
||2020-02-18 CC||mpolacek at gcc dot gnu.org, ||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Started with r9-4163

[Bug c++/93817] FAIL: g++.dg/diagnostic/array-init1.C -std=c++98 (test for errors, line 10)

2020-02-18 Thread mpolacek at gcc dot gnu.org
||2020-02-18 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- That's mine, sorry.

[Bug c++/93817] FAIL: g++.dg/diagnostic/array-init1.C -std=c++98 (test for errors, line 10)

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

[Bug c++/93803] [10 Regression] ICE: segmentation fault with constant initialization of class having a [[no_unique_address]] field

2020-02-18 Thread mpolacek at gcc dot gnu.org
|P1 CC||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 Summary|ICE: segmentation fault |[10 Regression] ICE: |with constant |segmentation fault

[Bug c++/93803] [10 Regression] ICE: segmentation fault with constant initialization of class having a [[no_unique_address]] field

2020-02-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93803 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/93803] [10 Regression] ICE: segmentation fault with constant initialization of class having a [[no_unique_address]] field

2020-02-18 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Mine, caused by r10-5194-g7906797ebec6881d7d90165340f51efcf447d716: commit 7906797ebec6881d7d90165340f51efcf447d716 Author: Marek Polacek Date: Thu Dec 5 20:13:03 2019 + PR c++/91353 - P1331R2

[Bug c++/93769] Slightly wrong error message for static_asserts with no message

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

[Bug c++/93790] Cannot initialize reference from std::reference_wrapper using direct- or list-initialization syntax in GCC 10 c++2a mode

2020-02-19 Thread mpolacek at gcc dot gnu.org
|ASSIGNED Last reconfirmed||2020-02-19 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Target Milestone|--- |10.0

[Bug c++/93676] [8/9/10 Regression] crash in build_value_init

2020-02-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #6 from Marek Polacek

[Bug c++/93169] [10 regression] Variable incorrectly put into readonly section.

2020-02-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93169 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #7 from Marek Polacek

[Bug c++/93596] [10 Regression] ICE related to templates and vectors.

2020-02-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93596 Marek Polacek changed: What|Removed |Added Priority|P3 |P1

[Bug c++/93169] [10 regression] Variable incorrectly put into readonly section.

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

[Bug c++/90997] [9 Regression] ICE on a memset in a template in tsubst_copy_and_build, at cp/pt.c:18480

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

[Bug c++/90966] [9/10 Regression] ICE in tsubst_copy, at cp/pt.c:16155

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

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-20 Thread mpolacek at gcc dot gnu.org
|ASSIGNED Last reconfirmed||2020-02-21 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Target Milestone|--- |10.0

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #2 from Marek Polacek --- In build_static_cast_1: 7397 tree lref = cp_build_reference_type (TREE_TYPE (type), false); 7398 result = (perform_direct_initialization_if_possible 7399 (lref, expr

[Bug c++/93869] [10 Regression] ICE in contains_struct_check with -Wmismatched-tags upon redundant typename

2020-02-21 Thread mpolacek at gcc dot gnu.org
|NEW Keywords||ice-on-valid-code Last reconfirmed||2020-02-21 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Summary|ICE in

[Bug c++/93869] [10 Regression] ICE in contains_struct_check with -Wmismatched-tags upon redundant typename

2020-02-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93869 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #2 from Marek Polacek

[Bug c++/93867] ICE using class type NTTPs and class template argument deduction

2020-02-21 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from Marek Polacek --- Dup, I think. Thanks for the nice testcase. *** This bug has been marked as a duplicate of bug 93295 ***

[Bug c++/93295] ICE in alias_ctad_tweaks

2020-02-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93295 Marek Polacek changed: What|Removed |Added CC||pkeir at outlook dot com --- Comment #4

[Bug c++/93295] ICE in alias_ctad_tweaks

2020-02-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93295 --- Comment #5 from Marek Polacek --- Another test from Bug 93867: template struct basic_fixed_string { constexpr basic_fixed_string(const CharT *p) { for (int i = 0; i < N; ++i) { m_data[i] = p[i]; } } CharT m_data[N] {};

[Bug c++/93869] [10 Regression] ICE in contains_struct_check with -Wmismatched-tags upon redundant typename

2020-02-21 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- Ack, mine then.

[Bug driver/93874] ICE due to command line options

2020-02-21 Thread mpolacek at gcc dot gnu.org
||2020-02-21 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/93882] i18n: use consistent message template in decl.c

2020-02-22 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Last reconfirmed||2020-02-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++/93882] i18n: use consistent message template in decl.c

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

[Bug c++/93881] cxx-pretty-print: only few i18n strings

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

[Bug c++/93880] missing test for diagnostic: %s%#qD (reversed)

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

[Bug c++/93883] missing test for diagnostic: using-declaration may not name enumerator %<%E::%D%>

2020-02-22 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |WORKSFORME --- Comment #1 from Marek Polacek --- This is tested in g++.dg/cpp0x/using-enum-2.C and g++.dg/cpp0x/using-enum-3.C.

[Bug c++/93880] missing test for diagnostic: %s%#qD (reversed)

2020-02-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93880 --- Comment #3 from Marek Polacek --- In this particular case I'm not sure how better we could test it. Now we have: 6 bool operator==(Y, int);// #2 { dg-message "reversed" "" { target c++2a } } and with all the escaping in tcl I don't th

[Bug c++/93880] missing test for diagnostic: %s%#qD (reversed)

2020-02-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93880 --- Comment #5 from Marek Polacek --- Right, but that still doesn't make it significantly easier to grep, I think.

[Bug c++/93895] [10 Regression] ICE (segmentation fault) in use of __is_constructible intrinsic

2020-02-23 Thread mpolacek at gcc dot gnu.org
||2020-02-23 CC||mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 Summary|ICE (segmentation fault) in |[10 Regression] ICE |use of __is_constructible |(segmentation fault) in use

[Bug c++/93895] [10 Regression] ICE (segmentation fault) in use of __is_constructible intrinsic

2020-02-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93895 --- Comment #3 from Marek Polacek --- The ICE started with r10-3735-gcb57504a550158913258e5be8ddb991376475efb

[Bug c++/93898] New: internal compiler error: in output_constructor_regular_field

2020-02-23 Thread mpolacek at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- struct empty { }; struct foo { [[no_unique_address]] empty x; constexpr foo() : x{} { } }; struct bar : foo { using foo::foo

[Bug c++/93898] [9/10 Regression] internal compiler error: in output_constructor_regular_field

2020-02-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93898 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code Priority|P3

[Bug c++/91847] init-capture pack of references requires ... on wrong side

2020-02-24 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/91847] init-capture pack of references requires ... on wrong side

2020-02-24 Thread mpolacek at gcc dot gnu.org
|--- |FIXED Assignee|mpolacek at gcc dot gnu.org|unassigned at gcc dot gnu.org --- Comment #3 from Marek Polacek --- Actually this was just fixed: r10-6813-g32b8f5df9f05426c82c6de1acaf9ca4aec68039d

[Bug c++/93712] [10 Regression] ICE in convert_like_real, at cp/call.c:7466

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

[Bug c++/93869] [10 Regression] ICE in contains_struct_check with -Wmismatched-tags upon redundant typename

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

[Bug c++/93883] missing test for diagnostic: using-declaration may not name enumerator %<%E::%D%>

2020-02-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93883 --- Comment #3 from Marek Polacek --- I suppose I could but there are thousands of other diagnostics in the testsuite and nobody's going to change all of it. Not sure if changing this particular case makes sense.

[Bug c++/93803] [10 Regression] ICE: segmentation fault with constant initialization of class having a [[no_unique_address]] field

2020-02-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93803 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #2 from Marek Polacek

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #3 from Marek Polacek --- I have a patch but both (2) and (3) are invalid, see . (icc also rejects it.)

[Bug c++/93803] [10 Regression] ICE: segmentation fault with constant initialization of class having a [[no_unique_address]] field

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

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

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

[Bug c++/93676] [8/9 Regression] crash in build_value_init

2020-02-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 Marek Polacek changed: What|Removed |Added Summary|[8/9/10 Regression] crash |[8/9 Regression] crash in

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #7 from Marek Polacek --- Oof, curious. Could you please create a new PR for that?

[Bug c++/93789] [8/9/10 Regression] internal compiler error: in tree_to_uhwi, at tree.c:7361

2020-02-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93789 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #2 from Marek Polacek

[Bug c++/93955] New: detect conversion from pointer type to arithmetic type in constexpr

2020-02-26 Thread mpolacek at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- constexpr long int foo () { return (long int) "foo" #ifdef FOO - 1 #endif ; } constexpr long int l = foo (); is

[Bug c++/93955] detect conversion from pointer type to arithmetic type in constexpr

2020-02-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93955 Marek Polacek changed: What|Removed |Added Keywords||accepts-invalid --- Comment #1 from Mare

<    6   7   8   9   10   11   12   13   14   15   >