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

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96137 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

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

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98355 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

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

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94775 --- Comment #17 from Marek Polacek --- Another attempt: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564461.html

[Bug c++/98861] I want deterministic exceptions (Herbception)

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98861 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/98861] I want deterministic exceptions (Herbception)

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98861 --- Comment #9 from Marek Polacek --- You can clone the gcc repo as explained here https://gcc.gnu.org/git.html and then start your own local branch.

[Bug libstdc++/88101] Implement P0528R3, C++20 cmpxchg and padding bits

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88101 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/98940] New: Implement C++23 language features

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98940 Bug ID: 98940 Summary: Implement C++23 language features Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: meta-bug Severity: normal Priority: P3

[Bug c++/98940] Implement C++23 language features

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98940 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/98941] [C++23] Implement P0330R2 - Literal Suffixes for ptrdiff_t and size_t

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98941 --- Comment #1 from Marek Polacek --- WIP: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/564675.html

[Bug c++/98941] [C++23] Implement P0330R2 - Literal Suffixes for ptrdiff_t and size_t

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98941 Marek Polacek changed: What|Removed |Added Last reconfirmed||2021-02-02 Blocks|

[Bug c++/98942] [C++23] Implement P1102R2 - Down with ()!

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98942 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/98942] New: [C++23] Implement P1102R2 - Down with ()!

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98942 Bug ID: 98942 Summary: [C++23] Implement P1102R2 - Down with ()! Product: gcc Version: 11.0 URL: https://wg21.link/p1102r2 Status: UNCONFIRMED Severity: normal

[Bug c++/98941] New: [C++23] Implement P0330R2 - Literal Suffixes for ptrdiff_t and size_t

2021-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98941 Bug ID: 98941 Summary: [C++23] Implement P0330R2 - Literal Suffixes for ptrdiff_t and size_t Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/98899] [10 Regression] ICE in tsubst_copy, at cp/pt.c:16198 since r10-1280-g78f7607db4c53f8c

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98899 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] ICE in |[10 Regression] ICE in

[Bug c++/98947] Incorrect warning when using a ternary operator to select one of two volatile variables to write to

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98947 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/98951] gcc/cp/call.c: 4 * member functions can be marked const

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98951 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug c++/101015] Poor diagnostic for deprecated alias-declaration

2021-06-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101015 --- Comment #2 from Marek Polacek --- This is because dump_decl does the decoration for TYPE_DECL_ALIAS_P: 1228 if (TYPE_DECL_ALIAS_P (t) 1229 && (flags & TFF_DECL_SPECIFIERS 1230 || flags &

[Bug c++/101032] Regression on parser with g++11 using experimental c++20 (compiles under c++17)

2021-06-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101032 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug c++/100977] [C++23] Implement C++ Identifier Syntax using Unicode Standard Annex 31

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100977 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

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

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93955 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/100974] [C++23] Implement if consteval

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100974 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/100752] [11/12 Regression] error: cannot call member function ‘void S::f()’ without object

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100752 --- Comment #3 from Marek Polacek --- Duh, we don't defer parsing of noexcept for any ptr-operator, like struct S { int& f() noexcept(noexcept(i)); int i; }; Awkward, but the fix should be simple.

[Bug c++/100975] [C++23] Allow pointer to array of auto

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100975 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Ever

[Bug c++/100976] [C++23] Make constexpr reference temp constexpr

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100976 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/100065] Conditional explicit doesn't work for deduction guide

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100065 --- Comment #3 from Marek Polacek --- Fixed on trunk so far, will backport.

[Bug c++/100979] Nested CTAD fails when the outer object is direct initialized and the inner object is list initialized

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100979 Marek Polacek changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug c++/89062] class template argument deduction failure with parentheses

2021-06-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89062 Marek Polacek changed: What|Removed |Added CC||brycelelbach at gmail dot com ---

[Bug c++/100983] Deduction guide for member template class rejected at class scope

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100983 Marek Polacek changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/100065] Conditional explicit doesn't work for deduction guide

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100065 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/96560] Substitution triggers compile-time error when it shouldn't

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96560 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #1 from Marek Polacek

[Bug c++/100986] internal compiler error: in finish_expr_stmt, at cp/semantics.c:681

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100986 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code Ever confirmed|0

[Bug c++/97375] Unexpected top-level const retainment when declaring non-type template paramter with decltype(auto)

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97375 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org,

[Bug c++/100995] New: Extend std::is_constant_evaluated in if warning

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100995 Bug ID: 100995 Summary: Extend std::is_constant_evaluated in if warning Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/100995] Extend std::is_constant_evaluated in if warning

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100995 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug c++/97202] GCC reports an error: expected unqualified-id before ‘short’

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97202 Marek Polacek changed: What|Removed |Added CC||felix.morgner at gmail dot com ---

[Bug c++/100997] [c++20] parse error when id-expression of constructor is simple-template-id

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100997 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/100997] [c++20] parse error when id-expression of constructor is simple-template-id

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100997 --- Comment #2 from Marek Polacek --- To make it work just remove the "" in A() {}.

[Bug c++/101013] Rejects-valid for alias template in a different namespace with a lambda in unevaluated context

2021-06-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101013 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/101015] Poor diagnostic for deprecated alias-declaration

2021-06-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101015 Marek Polacek changed: What|Removed |Added Last reconfirmed||2021-06-10 CC|

[Bug c++/100995] Extend std::is_constant_evaluated in if warning

2021-06-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100995 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/101165] New: [C++23] P2266R1 - Simpler implicit move

2021-06-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101165 Bug ID: 101165 Summary: [C++23] P2266R1 - Simpler implicit move Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/101165] [C++23] P2266R1 - Simpler implicit move

2021-06-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101165 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/101051] [10/11/12 Regression] [ICE] in splice_late_return_type, at cp/pt.c:29738

2021-06-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|[ICE] in

[Bug c++/101000] ICE when trying to import the absl/container/flat_hash_map.h as a header module

2021-06-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101000 Marek Polacek changed: What|Removed |Added Last reconfirmed||2021-06-09 Ever confirmed|0

[Bug c++/99032] GCC accepts attributes on friend declarations (not definitions)

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

[Bug c++/100596] [12 Regression] error: attribute appertains to a friend declaration that is not a definition since r12-786-g149061188c7c6ddf

2021-05-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100596 --- Comment #1 from Marek Polacek --- Rejecting such code was the point of the patch. I guess we'll have to either downgrade to a warning or just not complain about GNU attributes at all.

[Bug c++/100649] [9/10/11/12 Regression] ICE in coerce_template_parms (releases) or cxx_eval_constant_expression (trunk)

2021-05-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100649 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/87765] Internal compiler error: coerce_template_parms (8.2) or cxx_eval_constant_expression (trunk)

2021-05-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87765 Marek Polacek changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org ---

[Bug c++/100649] [9/10/11/12 Regression] ICE in coerce_template_parms (releases) or cxx_eval_constant_expression (trunk)

2021-05-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100649 --- Comment #2 from Marek Polacek --- The ICE appeared with r251423.

[Bug c++/100649] [9/10/11/12 Regression] ICE in coerce_template_parms (releases) or cxx_eval_constant_expression (trunk)

2021-05-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100649 Marek Polacek changed: What|Removed |Added Target Milestone|--- |9.4 CC|

[Bug c++/100652] Unexpanded parameter pack in partial specialization of variable template not rejected

2021-05-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100652 Marek Polacek changed: What|Removed |Added Keywords||accepts-invalid Last reconfirmed|

[Bug c++/100459] [10/11 regression] constexpr decltype(auto) variable declaration bogus cv qual error

2021-05-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100459 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug c++/100596] [12 Regression] error: attribute appertains to a friend declaration that is not a definition since r12-786-g149061188c7c6ddf

2021-05-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100596 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/100596] [12 Regression] error: attribute appertains to a friend declaration that is not a definition since r12-786-g149061188c7c6ddf

2021-05-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100596 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/99032] GCC accepts attributes on friend declarations (not definitions)

2021-05-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99032 --- Comment #2 from Marek Polacek --- Current test: class X { }; template void foo (T1, T2); struct S { [[deprecated]] friend void f(); // error [[deprecated]] friend void f2() { } friend void f3 [[deprecated]] (); // error friend void

[Bug c/100789] ICE: in gimplify_expr, at gimplify.c:14750

2021-05-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100789 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

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

2021-05-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94490 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/100752] [11/12 Regression] error: cannot call member function ‘void S::f()’ without object

2021-05-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100752 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/101368] -Wlogical-op and string comparison

2021-07-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101368 Marek Polacek changed: What|Removed |Added Keywords||diagnostic Ever confirmed|0

[Bug c++/101087] [9/10/11/12 Regression] Unevaluated operand of sizeof affects noexcept operator

2021-07-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101087 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/101370] miscompile of self-referential constexpr or constinit array initializer

2021-07-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101370 Marek Polacek changed: What|Removed |Added Last reconfirmed||2021-07-08

[Bug c++/100409] C++ FE elides pure throwing call

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

[Bug c++/101371] constexpr expansions trigger internal Compiler Error

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

[Bug c++/101371] constexpr expansions trigger internal Compiler Error

2021-07-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101371 --- Comment #3 from Marek Polacek --- The ICE started with r247813.

[Bug c++/57314] [Core/1635] default template arguments for member template functions of class templates are instantiated before allowed

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

[Bug c++/98939] [C++23] Implement P1787R6 "Declarations and where to find them"

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

[Bug c++/100975] [C++23] Allow pointer to array of auto

2021-06-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100975 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/100976] [C++23] Make constexpr reference temp constexpr

2021-07-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100976 --- Comment #3 from Marek Polacek --- (In reply to Jason Merrill from comment #2) > Or rather, > > int main() > { > constexpr const int = 42; > static_assert(r == 42); // { dg-bogus "" } > } > > [expr.const]/4.7 says that "a temporary

[Bug c++/100975] [C++23] Allow pointer to array of auto

2021-06-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100975 --- Comment #2 from Marek Polacek --- Looks like just disabling the check in create_array_type_for_decl lets us compile: struct false_type { static constexpr bool value = false; }; struct true_type { static constexpr bool value = true; };

[Bug c++/100752] [11 Regression] error: cannot call member function ‘void S::f()’ without object

2021-06-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100752 Marek Polacek changed: What|Removed |Added Summary|[11/12 Regression] error: |[11 Regression] error:

[Bug c++/100975] [C++23] Allow pointer to array of auto

2021-06-30 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100975 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/98940] Implement C++23 language features

2021-06-30 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98940 Bug 98940 depends on bug 100975, which changed state. Bug 100975 Summary: [C++23] Allow pointer to array of auto https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100975 What|Removed |Added

[Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library

2021-06-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241 --- Comment #3 from Marek Polacek --- I cannot reproduce this: $ xg++ -c a-eigen_bug.ii -O3 -ffast-math -march=haswell compiles.

[Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library

2021-06-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug c++/101371] [9/10/11/12 Regression] constexpr expansions trigger internal Compiler Error

2021-07-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101371 Marek Polacek changed: What|Removed |Added Target Milestone|--- |9.5 Status|NEW

[Bug c++/101371] [9/10/11/12 Regression] constexpr expansions trigger internal Compiler Error

2021-07-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101371 Marek Polacek changed: What|Removed |Added Priority|P3 |P2

[Bug c++/101421] ICE: in lookup_template_class_1, at cp/pt.c:10005

2021-07-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101421 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/101402] [DR 1001] top cv qualifier not dropped for array type typedef in template class

2021-07-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101402 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/51851] [core/1001] Overriding a function with a parameter of dependent type fails to override.

2021-07-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51851 Marek Polacek changed: What|Removed |Added CC||nickhuang99 at hotmail dot com ---

[Bug c++/101371] constexpr expansions trigger internal Compiler Error

2021-07-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101371 --- Comment #4 from Marek Polacek --- Reduced more: struct A { int i; }; struct B { A a{}; constexpr B() : a() {} constexpr B(const B ) : a(rhs.a) {} }; struct C { B arr[1]; }; constexpr C fn () { C c{}; return c; } C c = fn();

[Bug c++/101371] [9/10/11/12 Regression] constexpr expansions trigger internal Compiler Error

2021-07-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101371 --- Comment #6 from Marek Polacek --- And this should compile fine but doesn't since r269078: struct A { int i; }; struct B { A a{}; constexpr B() : a() {} constexpr B(const B ) : a(rhs.a) {} }; struct C { B arr[1]; }; constexpr C

[Bug c++/101087] [9 Regression] Unevaluated operand of sizeof affects noexcept operator

2021-07-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101087 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Summary|[9/10/11/12

[Bug c++/100409] C++ FE elides pure throwing call

2021-07-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100409 Bug 100409 depends on bug 101087, which changed state. Bug 101087 Summary: [9 Regression] Unevaluated operand of sizeof affects noexcept operator https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101087 What|Removed

[Bug c++/101181] [11/12 Regression] ICE when using an alias template

2021-06-30 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101181 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/100459] [10/11/12 regression] constexpr decltype(auto) variable declaration bogus cv qual error

2021-06-30 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100459 Marek Polacek changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/100752] [11 Regression] error: cannot call member function ‘void S::f()’ without object

2021-06-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100752 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/100976] [C++23] Make constexpr reference temp constexpr

2021-07-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100976 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug target/100241] internal compiler error: in curr_insn_transform, at lra-constraints.c:4133

2021-04-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100241 --- Comment #3 from Marek Polacek --- Now reproduced with a single file. Reducing that...

[Bug target/100241] internal compiler error: in curr_insn_transform, at lra-constraints.c:4133

2021-04-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100241 --- Comment #4 from Marek Polacek --- Single, hopefully valid TU, no LTO needed: $ gcc -march=armv8-a -fPIC -O3 100241.c -fvisibility=internal -c 100241.c: In function ‘vp9_first_pass_encode_tile_mb_row’: 100241.c:32:1: error: unable to

[Bug c++/100252] [8/9/10/11/12 Regression] Internal compiler error during template instantiation

2021-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100252 Marek Polacek changed: What|Removed |Added Summary|Internal compiler error |[8/9/10/11/12 Regression]

[Bug c++/100261] [11/12 Regression] ICE: tree check: expected var_decl or type_decl, have error_mark in emit_tinfo_decl, at cp/rtti.c:1643

2021-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100261 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org,

[Bug c++/100055] [10/11/12 Regression] ICE on invalid requires expression

2021-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100055 --- Comment #4 from Marek Polacek --- This fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99465#c1 but not https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99465#c0.

[Bug c++/100271] ICE in in tsubst_copy, at cp/pt.c:16480

2021-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100271 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/95317] [8/9/10 Regression] ICE on valid C++14 code, in tsubst_copy, at cp/pt.c:15649

2021-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95317 Marek Polacek changed: What|Removed |Added CC||zchendd at connect dot ust.hk ---

[Bug c++/89522] [8 Regression] ICE: trying to capture 'f' in instantiation of generic lambda

2021-04-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89522 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/86594] Crash on trying to capture 'this' in instantiation of generic lambda

2021-04-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86594 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/100291] [8/9/10/11/12 Regression] internal compiler error: trying to capture ‘this’ in instantiation of generic lambda

2021-04-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100291 Marek Polacek changed: What|Removed |Added Priority|P3 |P2 Target Milestone|---

[Bug c++/100291] New: internal compiler error: trying to capture ‘this’ in instantiation of generic lambda

2021-04-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100291 Bug ID: 100291 Summary: internal compiler error: trying to capture ‘this’ in instantiation of generic lambda Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c++/97533] ICE encountering operator() within lambda expression within templated struct

2021-04-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97533 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/100339] [8/9/10/11/12 Regression] Bogus "should have been declared inside" error with friend

2021-04-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100339 Marek Polacek changed: What|Removed |Added CC||nathan at gcc dot gnu.org

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