[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 #7 from Marek Polacek --- So a fix could be this, but maybe it would make us create a lot more variants (?): --- a/gcc/tree.c +++ b/gcc/tree.c @@ -6493,7 +6493,8 @@ check_base_type (const_tree cand, const_tree base)

[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 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

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

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

[Bug c++/94885] Functional cast from int to empty class type with empty base incorrectly accepted with -std=c++2a

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

[Bug c++/94885] Functional cast from int to empty class type with empty base incorrectly accepted with -std=c++2a

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

[Bug c++/94885] [10 Regression] Functional cast from int to empty class type with empty base incorrectly accepted with -std=c++2a

2020-04-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94885 --- Comment #3 from Marek Polacek --- process_init_constructor_record: 1743 if (DECL_SIZE (field) && integer_zerop (DECL_SIZE (field)) 1744 && !TREE_SIDE_EFFECTS (next)) 1745 /* Don't add trivial initialization of an empty

[Bug c++/94890] std::tuple({0}) fails to compile with -std=c++2a

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

[Bug c++/94890] std::tuple({0}) fails to compile with -std=c++2a

2020-05-01 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94890 --- Comment #6 from Marek Polacek --- Thanks Ville. What I should have said... (In reply to Marek Polacek from comment #4) > My current theory is that it is not a bug. ...in the compiler proper. It'd be nice if the original test compiled.

[Bug c++/94904] [DR 1696] Temporary lifetime and non-static data member initializers

2020-05-01 Thread mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1

[Bug c++/94907] ICE: Segmentation fault (in check_return_expr)

2020-05-01 Thread mpolacek at gcc dot gnu.org
|1 Last reconfirmed||2020-05-01 CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- We ICE here 9926 /* Remember that this function did return a value. */ 9927

[Bug c++/94885] [10 Regression] Functional cast from int to empty class type with empty base incorrectly accepted with -std=c++2a

2020-05-01 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94885 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] |[10 Regression] Functional

[Bug c++/94938] New: internal compiler error: in value_dependent_expression_p, at cp/pt.c:26522

2020-05-03 Thread mpolacek at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- template struct S { S(); S(bool); }; struct C { bool operator()(S); }; S fn (bool); template void foo (T) { S s; S

[Bug c++/94938] [10/11 Regression] internal compiler error: in value_dependent_expression_p, at cp/pt.c:26522

2020-05-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94938 Marek Polacek changed: What|Removed |Added CC||jason at gcc dot gnu.org Summ

[Bug c++/94896] [10/11 regression] ICE: canonical types differ for identical types

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

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

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

[Bug c++/94896] [10/11 regression] ICE: canonical types differ for identical types

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

[Bug c++/94929] [8 Regression] GCC 8 chokes on std::max in alignas

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

[Bug c++/94944] compile error accessing member function of dependent base class template in exception specification

2020-05-04 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Keywords||rejects-valid Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed. Not a regression AFAICT.

[Bug c++/94938] [10/11 Regression] internal compiler error: in value_dependent_expression_p, at cp/pt.c:26522

2020-05-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94938 --- Comment #2 from Marek Polacek --- value_dependent_expression_p (called via the new uses_template_parms call) doesn't expect a non-constant expression. So one possible fix would be: --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -10624,7 +10624,8 @@

[Bug c++/94929] [8 Regression] GCC 8 chokes on std::max in alignas

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

[Bug c++/94929] [8 Regression] GCC 8 chokes on std::max in alignas

2020-05-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94929 --- Comment #6 from Marek Polacek --- (In reply to David Seifert from comment #5) > (In reply to Marek Polacek from comment #3) > > I'm going to backport the fix to 8 if it passes the usual testing. > > Hi Marek, > could you also test the inline

[Bug c++/94937] [10/11 Regression] ICE with if constexpr (in cp_get_fndecl_from_callee, at cp/cvt.c:1000) since r10-2835-g14da3939da3adcef

2020-05-04 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #10 from Marek Polacek --- Mine. A reduced test would be very much appreciated, thanks Martin.

[Bug c++/94938] [10/11 Regression] internal compiler error: in value_dependent_expression_p, at cp/pt.c:26522

2020-05-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94938 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-05-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799 Marek Polacek changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] Calling

[Bug c++/94955] [10 regression] ICE in to_wide

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

[Bug c++/94955] [10 regression] ICE in to_wide

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

[Bug c++/94955] [10/11 Regression] ICE in to_wide

2020-05-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added Target Milestone|--- |10.2 Summary|[10 regression]

[Bug c++/94937] [10/11 Regression] ICE with if constexpr (in cp_get_fndecl_from_callee, at cp/cvt.c:1000) since r10-2835-g14da3939da3adcef

2020-05-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94937 --- Comment #15 from Marek Polacek --- Reduced: struct B { static constexpr bool foo() { return false; } }; template struct C { static void bar () { if constexpr (B::foo()) ; } };

[Bug c++/94937] [10/11 Regression] ICE with if constexpr (in cp_get_fndecl_from_callee, at cp/cvt.c:1000) since r10-2835-g14da3939da3adcef

2020-05-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94937 --- Comment #17 from Marek Polacek --- Ah, omp_declare_variant_finalize_one. I think I'll do something similar, but not the same: if we see a CALL_EXPR whose CALL_EXPR_FN is a BASELINK, we know it's not the std::is_constant_evaluated call we're

[Bug c++/94937] [10/11 Regression] ICE with if constexpr (in cp_get_fndecl_from_callee, at cp/cvt.c:1000) since r10-2835-g14da3939da3adcef

2020-05-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94937 --- Comment #18 from Marek Polacek --- Actually it might be better to make it out to a function and use that in both places, otherwise I'm either duplicating code or it's just too ugly.

[Bug c++/94946] [9/10/11 Regression] error: ‘template JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d

2020-05-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] error: |[9/10/11 Regression] error:

[Bug c++/94955] [10/11 Regression] ICE in to_wide

2020-05-06 Thread mpolacek at gcc dot gnu.org
at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/94938] [10 Regression] internal compiler error: in value_dependent_expression_p, at cp/pt.c:26522

2020-05-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94938 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] internal |[10 Regression] internal

[Bug c++/94957] Compilation slowww for simple code with -O1/2/3 and -g in GCC 8 and 9

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

[Bug c++/93529] Implement P1009R2, Array size deduction in new-expressions

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

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

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

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

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

[Bug c++/94938] [10 Regression] internal compiler error: in value_dependent_expression_p, at cp/pt.c:26522

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

[Bug c++/94765] Floating point type template parameter

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

[Bug c++/90915] [9/10/11 Regression] ICE in has_attribute, at c-family/c-attribs.c:4221

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

[Bug c++/94885] [10 Regression] Functional cast from int to empty class type with empty base incorrectly accepted with -std=c++2a

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

[Bug c++/47765] [Core/1391] Wrong template deduction

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

[Bug c++/95016] New: [DR 2082] Referring to parameters in unevaluated operands of default arguments

2020-05-08 Thread mpolacek at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- We give two errors here: void f () { int i; extern void g(int x = i); // error extern void h(int x

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

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

[Bug c++/95016] [DR 2082] Referring to parameters in unevaluated operands of default arguments

2020-05-08 Thread mpolacek at gcc dot gnu.org
|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED

[Bug c++/94955] [10/11 Regression] ICE in to_wide

2020-05-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added CC||john at mcfarlane dot name --- Comment #

[Bug c++/95022] ICE: expected integer_cst, have call_expr

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

[Bug c++/95036] [9/10/11 Regression] ICE with variadic type/nttp template templates

2020-05-10 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Target Milestone|--- |9.4 Last reconfirmed||2020-05-11 Summary|ICE with variadic type/nttp |[9/10/11 Regression] ICE

[Bug c++/95036] [9/10/11 Regression] ICE with variadic type/nttp template templates

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

[Bug c++/95036] [9/10/11 Regression] ICE with variadic type/nttp template templates

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

[Bug c++/95029] Compile error when using constant variable instead of literal

2020-05-11 Thread mpolacek at gcc dot gnu.org
|--- |INVALID CC||mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- Not a bug then.

[Bug c++/95063] [11 Regression] ICE in tsubst_decl, at cp/pt.c:14633

2020-05-11 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, started with r11-15-gbcbf334afe091ad7d0f5ffe164299f8730cf41d1

[Bug c++/95066] [C++ 20] Incorrect successful compilation with a conditional explicit

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

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

2020-05-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94775 --- Comment #16 from Marek Polacek --- It caused testsuite failures on non-x86-64 platforms, see bug 94896.

[Bug c++/95066] [C++ 20] Incorrect successful compilation with a conditional explicit

2020-05-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95066 --- Comment #3 from Marek Polacek --- Reduced: template struct Foo { template explicit(static_cast(true)) operator Foo(); }; template template Foo::operator Foo() { return {}; } int main () { Foo a; Foo b = a; }

[Bug c++/95066] [C++ 20] Incorrect successful compilation with a conditional explicit

2020-05-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95066 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #4 from Marek Polacek

[Bug c++/95073] New: Add "did you mean" when fn declaration could be found via ADL

2020-05-11 Thread mpolacek at gcc dot gnu.org
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- namespace N { struct X { }; void f(X); } void g () { extern void f(); // #1 N::X x; f(x); // calls locally declare

[Bug c++/95074] New: Function found via ADL when it should not

2020-05-11 Thread mpolacek at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- namespace N { struct S { }; void f(S); } namespace M { void f(int); } int main () { N::S s; extern void f(char); // #1 using M::f; // #2 f(s); } compiles fine

[Bug c++/95074] Function found via ADL when it should not

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

[Bug c++/95074] Function found via ADL when it should not

2020-05-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95074 --- Comment #2 from Marek Polacek --- This is where we're confused by the function introduced by M::f: /* We do not perform argument-dependent lookup if normal lookup finds a non-function, in accordance

[Bug c++/95074] Function found via ADL when it should not

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

[Bug c++/95093] New: Implement DR 1966, Colon following enumeration elaborated-type-specifier

2020-05-12 Thread mpolacek at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- In C++11 enum E { }; void f(bool b) { E e = b ? *new enum E : E{}; } should now compile: the colon is not an

[Bug c++/95074] Function found via ADL when it should not

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

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

2020-05-13 Thread mpolacek at gcc dot gnu.org
|1 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Last reconfirmed||2020-05-13 --- Comment #3 from Marek Polacek --- A patch for DR 2289 posted: https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545692.html

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

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

[Bug c++/95116] [C++ 20] Accepts invalid code with decltype dependent type

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

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

2020-05-15 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94799 --- Comment #10 from Marek Polacek --- I see :(. I'll take a look, thanks for noticing.

[Bug c++/95164] [9/10/11 Regression] ICE regression starting with 9.3

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

[Bug c++/95160] Explicit specialization in non-namespace scope bug

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

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

2020-05-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||mikelojkovic at gmail dot com --- Commen

[Bug c++/95164] [9/10/11 Regression] ICE regression starting with 9.3

2020-05-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95164 --- Comment #2 from Marek Polacek --- It actually started with r5-7-g1c982d13138ee4518db10b6fbe02fa32d09ab51e -- it was latent for a while.

[Bug c++/95179] explicit constructor not used for static inline member

2020-05-17 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Keywords||rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed||2020-05-17 --- Comment #1 from Marek Polacek --- Confirmed. The problem is that grokfield

[Bug c++/95164] [9/10/11 Regression] ICE regression starting with 9.3

2020-05-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95164 --- Comment #3 from Marek Polacek --- struct H { int a; }; struct I { int c; H b; }; struct E { I d; }; void foo(E); template void fn () { int a = 42; int &k = a; foo({1, {H{k}}}); }

[Bug c++/95192] [11 Regression] ICE: tree check: expected tree_list, have error_mark in handle_assume_aligned_attribute, at c-family/c-attribs.c:2996

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

[Bug c++/95193] [11 Regression] ICE in tsubst_decl, at cp/pt.c:14624

2020-05-18 Thread mpolacek at gcc dot gnu.org
||jason at gcc dot gnu.org, ||mpolacek at gcc dot gnu.org Target Milestone|--- |11.0 Last reconfirmed||2020-05-18 Ever confirmed|0 |1 --- Comment #1

[Bug c++/87699] Implement CWG 1512

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

[Bug c++/90915] [9/10 Regression] ICE in has_attribute, at c-family/c-attribs.c:4221

2020-05-18 Thread mpolacek at gcc dot gnu.org
|has_attribute, at |has_attribute, at |c-family/c-attribs.c:4221 |c-family/c-attribs.c:4221 Assignee|paolo.carlini at oracle dot com|mpolacek at gcc dot gnu.org --- Comment #7 from Marek Polacek --- Fixed on trunk. I'll also backport to 10.

[Bug c++/94937] [10 Regression] ICE with if constexpr (in cp_get_fndecl_from_callee, at cp/cvt.c:1000) since r10-2835-g14da3939da3adcef

2020-05-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94937 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] ICE with |[10 Regression] ICE with if

[Bug c++/94955] [10 Regression] ICE in to_wide

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

[Bug c++/95175] [9/10/11 Regression] constexpr and alias template

2020-05-18 Thread mpolacek at gcc dot gnu.org
|P2 Ever confirmed|0 |1 CC||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Summary|constexpr and alias |[9/10/11 Regression

[Bug c++/95197] New: libgomp/testsuite/libgomp.c++/for-27.C fails with -std=c++17

2020-05-18 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: --- See <https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545879.html> for why this fails. My workaround was --- a/libgomp/tes

[Bug analyzer/95207] the papers about gcc optimized

2020-05-19 Thread mpolacek at gcc dot gnu.org
||mpolacek at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Marek Polacek --- .

[Bug c++/95206] internal compiler error: in sign_mask, at wide-int.h:855

2020-05-19 Thread mpolacek at gcc dot gnu.org
|--- |DUPLICATE CC||mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Dup, fixed on trunk already. Will be fixed in GCC 10.2 too. *** This bug has been marked as a duplicate of bug 94955 ***

[Bug c++/94955] [10 Regression] ICE in to_wide

2020-05-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94955 Marek Polacek changed: What|Removed |Added CC||danny.schneider at posteo dot de --- Co

[Bug c++/95221] New: g++.dg/ubsan/vptr-12.C fails with -fstrong-eval-order=all

2020-05-19 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: --- It's this code: struct MyClass { virtual ~MyClass () {} virtual void Doit () {} }; int main () { MyClass *c = new MyClass

[Bug c++/95221] g++.dg/ubsan/vptr-12.C fails with -fstrong-eval-order=all

2020-05-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95221 --- Comment #1 from Marek Polacek --- It is caused by this code: 853 if (flag_strong_eval_order == 2 854 && CALL_EXPR_FN (*expr_p) 855 && cp_get_callee_fndecl_nofold (*expr_p) == NULL_TREE) 856 { 857

[Bug c++/95221] g++.dg/ubsan/vptr-12.C fails with -fstrong-eval-order=all

2020-05-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95221 --- Comment #2 from Marek Polacek --- I think the thing is that we have a CALL_EXPR, something like OBJ_TYPE_REF (...) (.UBSAN_VPTR ()) and now we first evaluate the OBJ_TYPE_REF. In this case this is what seems to happen here: 1) we evalua

[Bug c++/95221] g++.dg/ubsan/vptr-12.C fails with -fstrong-eval-order=all

2020-05-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95221 --- Comment #3 from Marek Polacek --- And for completeness, the asm for the -fstrong-eval-order=all case: movq%rbx, %rdi call*%r12 movq-24(%rbp), %rax movq(%rax), %rax addq$16, %rax

[Bug c++/95221] g++.dg/ubsan/vptr-12.C fails with -fstrong-eval-order=all

2020-05-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95221 --- Comment #5 from Marek Polacek --- You're not wrong, but here we're dealing with the undefined behavior sanitizer whose point is to detect broken code like the above.

[Bug c++/95241] [10/11 Regression] internal compiler error: tree check: expected integer_cst, have range_expr in to_wide, at tree.h:5900

2020-05-20 Thread mpolacek at gcc dot gnu.org
|range_expr in to_wide, at |tree.h:5900 |tree.h:5900 Status|UNCONFIRMED |NEW Last reconfirmed||2020-05-20 CC||mpolacek at gcc dot gnu.org

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

2020-05-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94553 --- Comment #5 from Marek Polacek --- The structured binding part is now fixed, but the variable template part isn't yet, so not closing.

[Bug c++/68394] [concepts] segfault in valid code

2020-05-26 Thread mpolacek at gcc dot gnu.org
|--- |DUPLICATE CC||mpolacek at gcc dot gnu.org --- Comment #3 from Marek Polacek --- Dup. *** This bug has been marked as a duplicate of bug 68395 ***

[Bug c++/68395] [concepts] segfault in valid code

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

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

2020-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 68394, which changed state. Bug 68394 Summary: [concepts] segfault in valid code https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68394 What|Removed |Added --

[Bug c++/68395] [concepts] segfault in valid code

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

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

2020-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 68628, which changed state. Bug 68628 Summary: [concepts] ICE: segmentation fault in crash_signal, toplev.c:334 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68628 What|Removed |Added --

[Bug c++/68628] [concepts] ICE: segmentation fault in crash_signal, toplev.c:334

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

[Bug c++/95291] ICE in resolve_args at gcc/cp/call.c:4482

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

[Bug c++/95301] excessive error messages

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

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 --- Comment #4 from Marek Polacek --- And related to bug 93955.

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