[Bug c++/94507] [8/9/10 Regression] internal compiler error: tree check: expected template_decl, have error_mark in tsubst_lambda_expr

2020-04-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94507 --- Comment #1 from Marek Polacek --- Started with r8-2720-gf44a8dd56f5bfbd0596c39693e268ef880c06221

[Bug c++/94507] [8/9/10 Regression] internal compiler error: tree check: expected template_decl, have error_mark in tsubst_lambda_expr

2020-04-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94507 --- Comment #2 from Marek Polacek --- Candidate fix: --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -18876,6 +18877,11 @@ tsubst_lambda_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl) if (oldtmpl) { tmpl = tsubst_templat

[Bug c++/94489] ICE: unexpected expression ‘std::min’ of kind overload

2020-04-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94489 --- Comment #4 from Marek Polacek --- (In reply to Marek Polacek from comment #2) > Doesn't seem like valid code; clang++ trunk also rejects it: > 94489.C:28:61: error: no matching constructor for initialization of > 'std::plus' > > I think the

[Bug c++/94507] [8/9/10 Regression] internal compiler error: tree check: expected template_decl, have error_mark in tsubst_lambda_expr

2020-04-07 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org Keywords||patch --- Comment #3 from Marek Polacek --- I posted a patch: https://gcc.gnu.org/pipermail/gcc-patches/2020-April/543391.html

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

2020-04-07 Thread mpolacek at gcc dot gnu.org
|1 Status|UNCONFIRMED |NEW CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Confirmed. Looks like it never worked.

[Bug c++/94478] [10 Regression] ICE in comptypes, at cp/typeck.c:1486

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

[Bug c++/94525] internal compiler error when function is "noexcept with templatized parameter".

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

[Bug c++/82099] internal compiler error: in type_throw_all_p, at cp/except.c:1186 when using a function pointer for templated predicate

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

[Bug c++/94490] Ternary expression with 3 consts is “not” a constant expression

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

[Bug c++/94478] [10 Regression] ICE in comptypes, at cp/typeck.c:1486

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

[Bug c++/94507] [8/9 Regression] internal compiler error: tree check: expected template_decl, have error_mark in tsubst_lambda_expr

2020-04-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94507 Marek Polacek changed: What|Removed |Added Summary|[8/9/10 Regression] |[8/9 Regression] internal

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

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

[Bug c++/94149] __is_constructible doesn't know about C++20 parenthesized init for arrays

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

[Bug c++/94546] unimplemented: unexpected AST of kind nontype_argument_pack

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

[Bug c++/94546] [10 Regression] unimplemented: unexpected AST of kind nontype_argument_pack

2020-04-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94546 Marek Polacek changed: What|Removed |Added Keywords|rejects-valid |ice-on-valid-code Target Milestone|---

[Bug c++/94149] __is_constructible doesn't know about C++20 parenthesized init for arrays

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

[Bug c++/94553] New: Revisit [basic.scope.declarative]/4.2

2020-04-10 Thread mpolacek at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- <http://eel.is/c++draft/basic.scope#declarative-4.2> has a note: A structured binding ([dcl.struct.bind]), namespace name ([basic.namespace]), or class template name ([temp.pre]

[Bug c++/94553] Revisit [basic.scope.declarative]/4.2

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

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

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

[Bug c++/94553] Revisit [basic.scope.declarative]/4.2

2020-04-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94553 --- Comment #2 from Marek Polacek --- To fix CWG 2289, we need this: --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -1705,6 +1705,9 @@ duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend) inform (olddecl_loc, "previous declarat

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

2020-04-10 Thread mpolacek at gcc dot gnu.org
|RESOLVED CC||mpolacek at gcc dot gnu.org --- Comment #5 from Marek Polacek --- Dup. *** This bug has been marked as a duplicate of bug 93383 ***

[Bug c++/93383] ICE on accessing field of a structure which is non-type template parameter, -std=c++2a

2020-04-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93383 Marek Polacek changed: What|Removed |Added CC||raphael.grimm at kit dot edu --- Comment

[Bug c++/93383] ICE on accessing field of a structure which is non-type template parameter, -std=c++2a

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

[Bug c++/86327] Spurious error on non-constant expression in constexpr function

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

[Bug c++/86327] Spurious error on non-constant expression in constexpr function

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

[Bug c++/55004] [meta-bug] constexpr issues

2020-04-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 86327, which changed state. Bug 86327 Summary: Spurious error on non-constant expression in constexpr function https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86327 What|Removed |Added ---

[Bug c++/94560] ICE on recursive templated alias

2020-04-11 Thread mpolacek at gcc dot gnu.org
|1 Status|UNCONFIRMED |NEW Keywords||ice-on-invalid-code CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Confirmed but looks invalid.

[Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template

2020-04-11 Thread mpolacek at gcc dot gnu.org
gcc dot gnu.org |mpolacek at gcc dot gnu.org CC||mpolacek at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #8 from Marek Polacek --- This is CWG 96. Too late for GCC 10 but I'll take a look in G

[Bug c++/87699] Implement CWG 1512

2020-04-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87699 Marek Polacek changed: What|Removed |Added Assignee|beliveau0213 at gmail dot com |mpolacek at gcc dot gnu.org

[Bug c++/94563] Relational operations between pointer and nullptr accepted

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

[Bug c++/87699] Implement CWG 1512

2020-04-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87699 Marek Polacek changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/87699] Implement CWG 1512

2020-04-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87699 --- Comment #6 from Marek Polacek --- See Daniel's testcase for why this is more important than it might seem: template bool test(T*) { return true; } int main() { test((int*)(nullptr)); }

[Bug c++/94572] New: Expunge references to direct-declarator

2020-04-12 Thread mpolacek at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- The direct-declarator production was removed in CWG 681 but we still have many references to it in the codebase. This makes it harder to navigate. $ grep -n direct.declarator cp

[Bug c++/94572] Expunge references to direct-declarator

2020-04-12 Thread mpolacek at gcc dot gnu.org
dot gnu.org |mpolacek at gcc dot gnu.org Last reconfirmed||2020-04-13 Status|UNCONFIRMED |ASSIGNED Keywords||internal-improvement

[Bug c++/94564] C++20: Three-way comparison between pointer and nullptr accepted

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

[Bug c++/94571] Error: Expected comma or semicolon, comma found

2020-04-13 Thread mpolacek at gcc dot gnu.org
|1 CC||mpolacek at gcc dot gnu.org Last reconfirmed||2020-04-13 Keywords||diagnostic --- Comment #2 from Marek Polacek --- Confirmed. clang++ says error: decomposition

[Bug c++/89025] Wrong point of declaration for enumeration names

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

[Bug c++/89025] Wrong point of declaration for enumeration names

2020-04-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89025 --- Comment #2 from Marek Polacek --- (In reply to Marek Polacek from comment #1) > None of the other compilers I've tried implement seem to implement this. s/implement//

[Bug c++/94588] New: Improve redeclared parameter name diagnostic

2020-04-13 Thread mpolacek at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- void f (int i) { int i; } is correctly rejected ([basic.scope.param]) but we don't print the previous decl: $ g++ -c p.C p.C: In function ‘void f(int)’: p.C:4:7:

[Bug c++/94588] Improve redeclared parameter name diagnostic

2020-04-13 Thread mpolacek at gcc dot gnu.org
|ASSIGNED Last reconfirmed||2020-04-13 Keywords||diagnostic Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/94588] Improve redeclared parameter name diagnostic

2020-04-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94588 --- Comment #1 from Marek Polacek --- ...nor in the outermost block of any handler associated with a function-try-block: void g (int i) try { } catch (...) { int i; }

[Bug c++/94583] [10 Regression] ICE in get_defaulted_eh_spec, at cp/method.c:2421

2020-04-13 Thread mpolacek at gcc dot gnu.org
|NEW CC||mpolacek at gcc dot gnu.org Last reconfirmed||2020-04-13 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. Started with r10-6586

[Bug c++/94588] Improve redeclared parameter name diagnostic

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

[Bug c++/92416] ICE with spaceship and vector types

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

[Bug c++/94583] [10 Regression] ICE in get_defaulted_eh_spec, at cp/method.c:2421

2020-04-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94583 --- Comment #2 from Marek Polacek --- We crash on the assert in get_defaulted_eh_spec: 2417 if (sfk == sfk_comparison) 2418 { 2419 /* We're in synthesize_method. Start with NULL_TREE, build_comparison_op 2420 will adjust as n

[Bug c++/94571] Error: Expected comma or semicolon, comma found

2020-04-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94571 --- Comment #4 from Marek Polacek --- I think that won't handle auto x(1), [e,f] = test2; where we should also say what clang says (or at least give inform()).

[Bug c++/94592] ICE in non-type template parameter with constexpr constructor

2020-04-14 Thread mpolacek at gcc dot gnu.org
|1 Target Milestone|--- |10.0 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Priority|P3 |P1 Status|UNCONFIRMED |ASSIGNED CC

[Bug c++/94592] ICE in non-type template parameter with constexpr constructor

2020-04-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94592 --- Comment #5 from Marek Polacek --- {} as a template argument is currently only supported by GCC as an extension, but I raised this on the core C++ list and it seems that the the conclusion is that we want this to work, though there's no CWG fo

[Bug c++/94592] [10 Regression] ICE in non-type template parameter with constexpr constructor

2020-04-15 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94592 --- Comment #7 from Marek Polacek --- Another problematical testcase: struct A { int i; constexpr A(int n) : i(n) {} }; template struct B { int i; constexpr B() : i(a.i) { } }; template void bar () { B<{1}> var; } void fu() {

[Bug c++/94628] segfault decltype

2020-04-16 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed||2020-04-16 --- Comment #1 from Marek Polacek --- Confirmed.

[Bug c++/94550] False positive with -Wparentheses

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

[Bug c++/94231] Invalid move constructor defaulted outside of class as deleted is accepted

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

[Bug c++/94592] [10 Regression] ICE in non-type template parameter with constexpr constructor

2020-04-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94592 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #8 from Marek Polacek

[Bug c++/94255] template specialization in different namespace causes crash

2020-04-17 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #5 from Marek Polacek --- Testing a patch.

[Bug c++/94264] Array-to-pointer conversion not performed on array prvalues

2020-04-18 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- cp_build_binary_op calls cp_default_conversion on its operands and that calls decay_conversion which has

[Bug c++/94310] using constructor inheritance breaks the code

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

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

2020-04-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 --- Comment #3 from Marek Polacek --- I think we could, the old diagnostic at least mentioned 'float'.

[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 mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94628 --- Comment #6 from Marek Polacek --- (In reply to Nicholas Krause from comment #5) > Shouldn't we also we testing for TYPE_ARGUMENT_PACK as well? Seems to be > missing in the reported patch id and is not checked higher up the stack > after look

[Bug c++/94310] using constructor inheritance breaks the code

2020-04-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94310 --- Comment #2 from Marek Polacek --- The difference stems from the fact that in this test: template struct B { }; template struct A : public B... { using B::B...; // #1 using B::operator=...; // #2 }; int main() {} when parsing B in

[Bug c++/94310] using constructor inheritance breaks the code

2020-04-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94310 --- Comment #3 from Marek Polacek --- Potential fix: --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -16982,6 +16982,15 @@ cp_parser_template_name (cp_parser* parser, decl = strip_using_decl (decl); + if (TREE_CODE (decl) == USING_DECL +

[Bug c++/94505] Logical operator inside fold-expression: strange warning

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

[Bug c++/94590] Incorrectly accepts invalid C++11 braced initialisation of double from long double if sizeof(long double)==sizeof(double)

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

[Bug c++/94590] Incorrectly accepts invalid C++11 braced initialisation of double from long double if sizeof(long double)==sizeof(double)

2020-04-19 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- Untested fix: --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1008,10 +1008,17 @@ check_narrowing (tree type, tree init, tsubst_flags_t complain, || !int_fits_type_p (init, type

[Bug c++/94560] ICE on recursive templated alias

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94560 --- Comment #2 from Marek Polacek --- This ICE is the same as the second test in bug 93085.

[Bug c++/94575] Bogus warning: Used variable is “not” used

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

[Bug c++/94575] Bogus warning: Used variable is “not” used

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94575 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

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

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94628 --- Comment #11 from Marek Polacek --- (In reply to Nicholas Krause from comment #9) > Created attachment 48318 [details] > Possible Fix No, it's not a fix, it just replaces an ICE with another ICE, as Martin already pointed out: 94628-3.C:5:40

[Bug c++/94255] template specialization in different namespace causes crash

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94255 --- Comment #6 from Marek Polacek --- Patch approved for GCC 11: https://gcc.gnu.org/pipermail/gcc-patches/2020-April/544081.html

[Bug c++/94590] Incorrectly accepts invalid C++11 braced initialisation of double from long double if sizeof(long double)==sizeof(double)

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94590 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #5 from Marek Polacek

[Bug c++/94505] Logical operator inside fold-expression: strange warning

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

[Bug c++/91241] [8/9/10 Regression] internal compiler error: symtab_node::verify failed

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91241 --- Comment #8 from Marek Polacek --- Ping, can we get this fixed in GCC 10?

[Bug c++/90254] [8/9/10 Regression] ice on aggregate initialization of unmovable base

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90254 --- Comment #3 from Marek Polacek --- This reduced test actually regressed with r241187: struct A { A(A &); }; struct B : A { }; A foo (); int main () { B{foo()}; } $ ./cc1plus -quiet x.C -std=c++17 during RTL pass: expand x.C: In functio

[Bug c++/94592] [10 Regression] ICE in non-type template parameter with constexpr constructor

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

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

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 Bug 91465 depends on bug 94592, which changed state. Bug 94592 Summary: [10 Regression] ICE in non-type template parameter with constexpr constructor https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94592 What|Removed

[Bug c++/90254] [8/9/10 Regression] ice on aggregate initialization of unmovable base

2020-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90254 --- Comment #4 from Marek Polacek --- But this one is accepted by icc/clang++ yet we ICE: struct A { A(); A(const A &); }; struct B : A { }; A foo (); int main () { B b{foo()}; }

[Bug c++/94691] ICE resolving deduction guide

2020-04-21 Thread mpolacek at gcc dot gnu.org
||2020-04-21 Ever confirmed|0 |1 CC||mpolacek at gcc dot gnu.org

[Bug c++/94691] ICE resolving deduction guide

2020-04-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94691 --- Comment #1 from Marek Polacek --- Same ICE as bug 94560 but this actually might be valid (?).

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

2020-04-21 Thread mpolacek at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- This options contains a sub-option -Wrange-loop-construct which warns about: #include #include int main() { std::vector lol; for (const auto it : lol) { } } :7:21: warning: loop

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

2020-04-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94695 Marek Polacek changed: What|Removed |Added Keywords||diagnostic Severity|normal

[Bug c++/94685] Misleading error: array must be initialized with a brace-enclosed initializer

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

[Bug c++/93807] -std=c++2a allows to omit out-of-class declaration in template class

2020-04-21 Thread mpolacek at gcc dot gnu.org
|ASSIGNED Keywords|accepts-invalid | CC||mpolacek at gcc dot gnu.org Last reconfirmed||2020-04-21 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/93807] -std=c++2a allows to omit out-of-class declaration in template class

2020-04-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93807 --- Comment #3 from Marek Polacek --- (Clang doesn't accept this code because it doesn't implement P0846R0 yet.)

[Bug c++/94721] C++2a: Three-way comparison operator for function pointers rejected

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

[Bug c++/93807] -std=c++2a allows to omit out-of-class declaration in template class

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

[Bug c++/90320] [8/9/10 Regression] Explicit constructor called implicitly

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

[Bug c++/94733] [10 Regression] ICE: tree check: expected identifier_node, have tree_list in is_attribute_p, at attribs.h:155

2020-04-23 Thread mpolacek at gcc dot gnu.org
dot gnu.org |mpolacek at gcc dot gnu.org Target Milestone|--- |10.0 Status|UNCONFIRMED |ASSIGNED CC||mpolacek at gcc dot gnu.org Last reconfirmed||2020-04-23

[Bug c++/94721] C++2a: Three-way comparison operator for function pointers rejected

2020-04-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94721 Marek Polacek changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[Bug c++/94733] [10 Regression] ICE: tree check: expected identifier_node, have tree_list in is_attribute_p, at attribs.h:155

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

[Bug c++/90254] [8/9/10 Regression] ice on aggregate initialization of unmovable base

2020-04-24 Thread mpolacek at gcc dot gnu.org
|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Status|NEW |ASSIGNED

[Bug c++/94751] [9/10] ICE on invalid code in maybe_instantiate_noexcept

2020-04-24 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Target Milestone|--- |9.4 Last reconfirmed||2020-04-24 Ever confirmed|0 |1 Keywords||ice-on-invalid-code --- Comment #1 from Marek

[Bug c++/94751] [9/10 Regression] ICE on invalid code in maybe_instantiate_noexcept

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

[Bug c++/90320] [8/9 Regression] Explicit constructor called implicitly

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

[Bug c++/94799] [8/9/10 Regression] Regression] Calling a member template function fails

2020-04-27 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Summary|[7.2+ Regression] Calling a |[8/9/10 Regression] |member template function|Regression] Calling a |fails |member template

[Bug c++/94799] [8/9/10 Regression] Regression] Calling a member template function fails

2020-04-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799 --- Comment #2 from Marek Polacek --- Relevant threads: https://gcc.gnu.org/pipermail/gcc-patches/2017-June/478011.html https://gcc.gnu.org/pipermail/gcc-patches/2017-June/478247.html

[Bug c++/94803] wrong class name in error message

2020-04-27 Thread mpolacek at gcc dot gnu.org
|1 Last reconfirmed||2020-04-27 CC||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from Marek Polacek --- Confirmed, at least gcc 4.8 prints the same

[Bug c++/94799] [8/9/10 Regression] Calling a member template function fails

2020-04-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799 --- Comment #3 from Marek Polacek --- Here we have "p->template A::a()" but cp_parser_expression only parses the "p->template A" part, so we complain that a ; isn't following. It's because cp_parser_template_name now considers the object scope:

[Bug c++/94799] [8/9/10 Regression] Calling a member template function fails

2020-04-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799 --- Comment #4 from Marek Polacek --- Another test, where the name after . isn't an injected-class-name: template struct B { void foo (); int i; }; template struct D : public B { }; template void fn (D d) { d.template B::foo (); d.temp

[Bug c++/94799] [8/9/10 Regression] Calling a member template function fails

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

[Bug c++/94799] [8/9/10 Regression] Calling a member template function fails

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

[Bug c++/94775] [8/9/10 Regression] ICE in strip_typedefs, at cp/tree.c:1734 since r8-4668-g8a5ee94a082b3d48

2020-04-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94775 --- Comment #6 from Marek Polacek --- The TYPE_USER_ALIGN (t) assert was there even before my change, but I agree this is a latent problem not directly caused by r8-4668-g8a5ee94a082b3d48. Here strip_typedefs gets "const d[0]" with TYPE_USER_ALI

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