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

2020-06-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 94553, which changed state. Bug 94553 Summary: Revise [basic.scope.declarative]/4.2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94553 What|Removed |Added ---

[Bug c++/95568] No CTAD with list initialization within templated entity

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

[Bug c++/95999] ICE in tree check: expected integer_cst, have var_decl in get_len, at tree.h:5951

2020-07-01 Thread mpolacek at gcc dot gnu.org
||2020-07-01 CC||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- Started with r265055.

[Bug c++/96039] Missing diagnostic: C++11 alignment specifier on bit-fields

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

[Bug c++/90847] misplaced alignment-specifier not diagnosed

2020-07-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90847 Marek Polacek changed: What|Removed |Added CC||hstong at ca dot ibm.com --- Comment #4

[Bug c++/96095] decltype((r)) inside of lambda with copy capture gives wrong type

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

[Bug c++/95789] [10/11 Regression] Const method is allowed to return non-const reference on template class

2020-07-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95789 Marek Polacek changed: What|Removed |Added CC||agadethrowaway at gmail dot com --- Comm

[Bug c++/96096] g++-10.1 silently ignores function violating const instead of refusing to compile

2020-07-07 Thread mpolacek at gcc dot gnu.org
|--- |DUPLICATE CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Thanks for the report. Dup. *** This bug has been marked as a duplicate of bug 95789 ***

[Bug c++/96103] Unclear diagnostic for a function return with "decltype(auto)"

2020-07-07 Thread mpolacek at gcc dot gnu.org
|NEW Last reconfirmed||2020-07-07 CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Confirmed, we should tweak cp_parser_decltype to give a better error.

[Bug c++/96103] Unclear diagnostic for a function return with "decltype(auto)"

2020-07-07 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/96104] [10/11 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:681

2020-07-07 Thread mpolacek at gcc dot gnu.org
|ASSIGNED Ever confirmed|0 |1 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Target Milestone|--- |10.2 Last

[Bug c++/96104] [10/11 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:681

2020-07-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96104 --- Comment #2 from Marek Polacek --- Reduced: // PR c++/96104 template void fn(T &); class E {}; struct F { template void mfn(T t) { t, fn(E()); } // { dg-error "cannot bind non-const lvalue reference" } }; int main() { E e; F f; f.m

[Bug c++/95789] [10/11 Regression] Const method is allowed to return non-const reference on template class

2020-07-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95789 Marek Polacek changed: What|Removed |Added CC||60rntogo at gmail dot com --- Comment #4

[Bug c++/96104] [10/11 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:681

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

[Bug c++/95789] [10/11 Regression] Const method is allowed to return non-const reference on template class

2020-07-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95789 --- Comment #5 from Marek Polacek --- Another test: // PR c++/96104 template void fn(T &); class E {}; struct F { template void mfn(T t) { t, fn(E()); } // { dg-error "cannot bind non-const lvalue reference" } }; int main() { E e; F f;

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

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

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

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

[Bug c++/95935] ICE : Segmentation fault crash_signal from toplev.c:328

2020-07-07 Thread mpolacek at gcc dot gnu.org
|accepts-invalid CC||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed||2020-07-07 --- Comment #1 from Marek Polacek --- Confirmed, but here's an improved

[Bug c++/95935] ICE : Segmentation fault crash_signal from toplev.c:328

2020-07-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95935 --- Comment #2 from Marek Polacek --- Doesn't have to be scoped enum: template struct X { };

[Bug c++/95935] ICE : Segmentation fault crash_signal from toplev.c:328

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95935 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/96103] Unclear diagnostic for a function return with "decltype(auto)"

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

[Bug c++/95972] ICE in check_member_template, at cp/decl2.c:570

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

[Bug c++/96111] checking type of attribute with concepts results in compilation error or ICE

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

[Bug c++/96116] GCC accepts "enum struct/class" in reference to enumeration

2020-07-08 Thread mpolacek at gcc dot gnu.org
|1 CC||mpolacek at gcc dot gnu.org Last reconfirmed||2020-07-08 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/95972] ICE in check_member_template, at cp/decl2.c:570

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95972 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097 Marek Polacek changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/96123] [10, trunk] segment fault with NTTP fixed_string

2020-07-08 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Marek Polacek --- Dup of 95159/95291. *** This bug has been marked as a duplicate of bug 95159 ***

[Bug c++/95159] ICE on aggregate template parameter with empty angle brackets

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95159 Marek Polacek changed: What|Removed |Added CC||lutztonineubert at gmail dot com --- Co

[Bug c++/96077] GCC accepts ill-legal local enum definition

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

[Bug c++/95955] ICE: tree check: expected integer_type or enumeral_type or boolean_type or real_type or fixed_point_type, have union_type in int_fits_type_p, at tree.c:8952

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95955 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Ever

[Bug c++/95955] ICE: tree check: expected integer_type or enumeral_type or boolean_type or real_type or fixed_point_type, have union_type in int_fits_type_p, at tree.c:8952

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95955 Marek Polacek changed: What|Removed |Added Priority|P3 |P5

[Bug c++/95925] ICE in xref_basetypes, at cp/decl.c:15169

2020-07-08 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Priority|P3 |P5

[Bug c++/95927] ICE in cp_lexer_new_from_tokens, at cp/parser.c:701

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95927 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Last

[Bug c++/96045] [11 Regression] Wrong line and column diagnostic message in a class template instantiation

2020-07-08 Thread mpolacek at gcc dot gnu.org
|instantiation |instantiation Status|UNCONFIRMED |NEW CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Confirmed. Interestingly, GCC 10 was much better: $ xg++-10 -c

[Bug c++/96045] [11 Regression] Wrong line and column diagnostic message in a class template instantiation

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96045 --- Comment #2 from Marek Polacek --- Regressed with r11-338-g2a0225e47868fbfceaecaa5e2de96c1c5a2251ea

[Bug c++/96048] ICE in get_local_decls, at cp/name-lookup.c:3591

2020-07-08 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed||2020-07-08 Ever confirmed|0 |1

[Bug c++/96060] ICE with spaceship default operator returning int

2020-07-08 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. GCC 10 ICEs too.

[Bug c++/96064] Defaulted constexpr spaceship operator triggers internal compiler error after including utility

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

[Bug c++/96060] ICE with spaceship default operator returning int

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96060 Marek Polacek changed: What|Removed |Added CC||milasudril at gmail dot com --- Comment

[Bug c++/93788] Segfault caused by infinite loop in cc1plus

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93788 --- Comment #2 from Marek Polacek --- *** Bug 95930 has been marked as a duplicate of this bug. ***

[Bug c++/95930] ICE: Segmentation fault signal terminated program cc1plus

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

[Bug c++/95945] ICE in poplevel, at cp/decl.c:585

2020-07-08 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed||2020-07-08 Ever confirmed|0 |1

[Bug c++/95932] ICE in redeclare_class_template, at cp/pt.c:6231

2020-07-08 Thread mpolacek at gcc dot gnu.org
||2020-07-08 Priority|P3 |P5 CC||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW

[Bug c++/95954] ICE: unexpected expression ‘(a)’ of kind paren_expr

2020-07-08 Thread mpolacek at gcc dot gnu.org
changed: What|Removed |Added Last reconfirmed||2020-07-08 CC||mpolacek at gcc dot gnu.org Status

[Bug c++/95956] ICE in check_bases, at cp/class.c:1689

2020-07-08 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Priority|P3 |P5 Last reconfirmed||2020-07-08

[Bug c++/95968] error: 'args#0' is not a constant expression

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

[Bug c++/95982] [10 Regression] ICE with non-type template parameter that is itself the instantiation of a template

2020-07-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95982 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Target

[Bug c++/79815] gcc does not implement C++ standard 7.1.7.4.1 p5 correctly.

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

[Bug c++/96137] [11 Regression] GCC hang on in invalid function definition

2020-07-09 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Target Milestone|--- |11.0 Keywords||compile-time-hog CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc

[Bug c++/92171] accept incorrect access of static constexpr member when read from a reference

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

[Bug c++/96138] New: DR 458: Hiding of member template parameters by other members

2020-07-09 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: --- This test from [temp.local] should now compile: template struct A { struct B { /* ... */ }; typedef void C; void f(); template

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 --- Comment #4 from Marek Polacek --- Doesn't even need to be in the ?: operator: int main () { enum { E = (2 } e; if (E != 2) __builtin_abort (); }

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/96155] "throw" that is not executed in constexpr function fails to compile

2020-07-10 Thread mpolacek at gcc dot gnu.org
|1 Status|UNCONFIRMED |NEW CC||mpolacek at gcc dot gnu.org Last reconfirmed||2020-07-10 --- Comment #1 from Marek Polacek --- Confirmed. Doesn't look like a regression.

[Bug c++/96077] GCC accepts ill-legal local enum definition

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

[Bug c++/92812] Implement P1975R0: Fixing the wording of parenthesized aggregate-initialization

2020-07-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92812 --- Comment #4 from Marek Polacek --- This already works: // P1975R0 struct Aggr { int x; int y; }; int main () { Aggr a = static_cast(1); if (a.x != 1 || a.y != 0) __builtin_abort (); } but we generate q.C: In function ‘int main()’:

[Bug c++/92812] Implement P1975R0: Fixing the wording of parenthesized aggregate-initialization

2020-07-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92812 --- Comment #5 from Marek Polacek --- I don't know if this is supposed to be valid now too: int arr[1] = static_cast(42); or using T = int[]; int arr[1] = static_cast(42); but it seems so.

[Bug c++/92812] Implement P1975R0: Fixing the wording of parenthesized aggregate-initialization

2020-07-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92812 --- Comment #6 from Marek Polacek --- Actually make that using T = int[1]; T&& arr = static_cast(42);

[Bug c++/96179] [10/11 Regression] g++-10.1 silently doesn't push_back the return of a void function

2020-07-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96179 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/96077] GCC accepts ill-legal local enum definition

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

[Bug c++/96077] GCC accepts ill-legal local enum definition

2020-07-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077 --- Comment #9 from Marek Polacek --- Fixed for GCC 10.2 and 11.

[Bug c++/95288] Poor error message with function-scope enum definition

2020-07-13 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- Somewhat improved by r11-2064, though we still generate junk that seem redundant. But at least it says error: expected ‘}’ before ‘.’ token

[Bug c++/95288] Poor error message with function-scope enum definition

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

[Bug c++/96169] Don't provide internal lambda names in diagnostics?

2020-07-13 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. I think Nathan tweaked the lambda names recently.

[Bug c++/96179] [10/11 Regression] g++-10.1 silently doesn't push_back the return of a void function

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

[Bug c++/95789] [10/11 Regression] Const method is allowed to return non-const reference on template class

2020-07-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95789 --- Comment #6 from Marek Polacek --- *** Bug 96179 has been marked as a duplicate of this bug. ***

[Bug c++/95789] [10/11 Regression] Const method is allowed to return non-const reference on template class

2020-07-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95789 --- Comment #7 from Marek Polacek --- // PR c++/96179 template struct vector { void push_back(T) { } }; struct dummy{ int a; }; void Modify_Dummy(dummy &d){ d.a=1; } template void Templated_Function(){ vector A;

[Bug c++/59978] C++11 Non-Type-Template-Parameter Pack Expansion not working according to standard

2020-07-13 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 #2 from Marek Polacek --- Right, thanks, fixed in r224162. That came without a test so I'll add this one.

[Bug c++/95820] [10 Regression] ICE in splice_late_return_type, at cp/pt.c:29034

2020-07-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95820 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] ICE in |[10 Regression] ICE in

[Bug c++/94415] Implement DR 2237: Can a template-id name a constructor?

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

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

2020-07-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 94415, which changed state. Bug 94415 Summary: Implement DR 2237: Can a template-id name a constructor? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94415 What|Removed |Added ---

[Bug c++/96199] New: internal compiler error: in tsubst_copy with CTAD for alias templates

2020-07-14 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: --- template class A; template struct W { }; template class B { enum { X }; B(A) { } template using U = B; W u

[Bug c++/96199] [10/11 Regression] internal compiler error: in tsubst_copy with CTAD for alias templates

2020-07-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96199 Marek Polacek changed: What|Removed |Added Summary|internal compiler error: in |[10/11 Regression] internal

[Bug c++/96199] [10/11 Regression] internal compiler error: in tsubst_copy with CTAD for alias templates

2020-07-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96199 --- Comment #2 from Marek Polacek --- We're reaching tsubst_copy/CONST_DECL: /* We didn't find the name. That should never happen; if name-lookup found it during preliminary parsing, we should find it again h

[Bug c++/59978] C++11 Non-Type-Template-Parameter Pack Expansion not working according to standard

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

[Bug c++/95789] [10/11 Regression] Const method is allowed to return non-const reference on template class

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

[Bug c++/96218] New: DR 2032: Default template-arguments of variable templates

2020-07-16 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: --- // DR 2032 - Default template-arguments of variable templates // [temp.param]/14: If a template-parameter of a class template, variable

[Bug c++/96218] DR 2032: Default template-arguments of variable templates

2020-07-16 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2020-07-16

[Bug c++/85282] CWG 727 (full specialization in non-namespace scope)

2020-07-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85282 Marek Polacek changed: What|Removed |Added CC||haoxintu at gmail dot com --- Comment #8

[Bug c++/96219] New Feature (c++ core 727): explicit specialization in class definition should be allowed

2020-07-16 Thread mpolacek at gcc dot gnu.org
|--- |DUPLICATE CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Dup. *** This bug has been marked as a duplicate of bug 85282 ***

[Bug c++/50370] [C++0x] Multiple declarations with default template arguments accepted

2020-07-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50370 Marek Polacek changed: What|Removed |Added CC||ec13n at my dot fsu.edu --- Comment #3 f

[Bug c++/82850] g++ permits redefinition of default arguments

2020-07-16 Thread mpolacek at gcc dot gnu.org
|--- |DUPLICATE CC||mpolacek at gcc dot gnu.org --- Comment #6 from Marek Polacek --- Closing. *** This bug has been marked as a duplicate of bug 50370 ***

[Bug c++/50370] [C++0x] Multiple declarations with default template arguments accepted

2020-07-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50370 Marek Polacek changed: What|Removed |Added CC||david.bolvansky at gmail dot com --- Co

[Bug c++/87234] GCC should warn if template parameter redefines default argument

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

[Bug c++/96223] New: DR 1787 and indeterminate values in constexpr context

2020-07-16 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: --- Use -std=c++20: // DR 1787 #include constexpr int fn1 () { unsigned char foo; unsigned char u = foo; // OK: u has an indeterminate value return u; // UB

[Bug c++/96223] DR 1787 and indeterminate values in constexpr context

2020-07-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96223 --- Comment #1 from Marek Polacek --- Note that is_byte_access_type won't do, because it includes char8_t too.

[Bug c++/96213] GCC doesn't complain about ill-formed non-dependent template default argument

2020-07-16 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Keywords||accepts-invalid Last reconfirmed||2020-07-16 Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- Your observation makes sense to me, so

[Bug c++/96215] Wrong mangling for non-dependent return type involving decltype(g.x) or decltype(p->x)

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

[Bug c++/79815] gcc does not implement C++ standard 7.1.7.4.1 p5 correctly.

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

[Bug c++/96257] [11 Regression] ICE in cp_parser_skip_to_pragma_eol, at cp/parser.c:3948

2020-07-21 Thread mpolacek at gcc dot gnu.org
||2020-07-21 Status|UNCONFIRMED |NEW CC||mpolacek at gcc dot gnu.org, ||nathan at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Started with r11-2106

[Bug c++/96258] [11 Regression] ICE: Segmentation fault (in cp_parser_declaration)

2020-07-21 Thread mpolacek at gcc dot gnu.org
||2020-07-21 CC||mpolacek at gcc dot gnu.org, ||nathan at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- Seems to have started with r11

[Bug c++/96241] [9/10/11 Regression] ICE in verify_ctor_sanity

2020-07-21 Thread mpolacek at gcc dot gnu.org
, ||mpolacek at gcc dot gnu.org Last reconfirmed||2020-07-21 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- It used to compile, then since

[Bug c++/96268] class-type NTTP CTAD for string-literal aggregate fails on aggregate initialization

2020-07-21 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Last reconfirmed||2020-07-21 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- I suppose it should work.

[Bug c++/96268] class-type NTTP CTAD for string-literal aggregate fails on aggregate initialization

2020-07-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96268 --- Comment #3 from Marek Polacek --- name<{"hi"}> would work if convert_nontype_argument called digest_init for the CONSTRUCTOR. This reminds me of another PR where I wanted to add such a digest_init call, but in the end wound up doing somethin

[Bug c++/96257] [11 Regression] ICE in cp_parser_skip_to_pragma_eol, at cp/parser.c:3948

2020-07-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96257 --- Comment #3 from Marek Polacek --- I think gomp.exp adds -fopenmp -Wno-hsa automatically.

[Bug c++/92812] Implement P1975R0: Fixing the wording of parenthesized aggregate-initialization

2020-07-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92812 --- Comment #7 from Marek Polacek --- This should now work too: int (&&r)[3] = static_cast(42); int (&&r2)[1] = static_cast(42); and in both cases the reference declarations lifetime-extend the array temporary.

[Bug c++/58156] bogus ambigous overload with variadic template

2020-07-22 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org Keywords||rejects-valid CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- This happens to be fixed by r11-1571. Will add the test.

[Bug c++/52094] ICE on definition of nested class in wrong namespace scope with wrong nested-name-qualifier

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

[Bug c++/68828] [concepts] ICE in fold with requires and function call around parameters

2020-07-23 Thread mpolacek at gcc dot gnu.org
|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Compiles fine

[Bug c++/68828] [concepts] ICE in fold with requires and function call around parameters

2020-07-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68828 --- Comment #3 from Marek Polacek --- *** Bug 68827 has been marked as a duplicate of this bug. ***

<    1   2   3   4   5   6   7   8   9   10   >