++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
I believe this should compile:
```
template
struct S { using U = T; static const int x = 0; };
void
g ()
{
::S::U a;
::template S::U b;
auto c = ::S::x;
auto d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119829
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
Ever
||mpolacek at gcc dot gnu.org,
||ppalka at gcc dot gnu.org
Priority|P3 |P1
--- Comment #5 from Marek Polacek ---
Started with r15-2120:
commit 30dd420a06ad7d2adf4a672d176caee632f8168a
Author: Patrick Palka
||mpolacek at gcc dot gnu.org
Target Milestone|--- |12.5
--- Comment #1 from Marek Polacek ---
Started with r10-7816:
commit 7fcb93431ef18a31c9af142f77faa176bbd9b3dc
Author: Nathan Sidwell
Date: Mon Apr 20 06:48:45 2020 -0700
c++: Expr pack expansion
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119576
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
at gcc dot gnu.org |jakub at gcc dot gnu.org
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119574
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119574
--- Comment #5 from Marek Polacek ---
Or perhaps this should be a P2. I'm honestly not sure. We should fix it
anyway ;).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119574
Marek Polacek changed:
What|Removed |Added
CC||ppalka at gcc dot gnu.org
Key
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119303
Marek Polacek changed:
What|Removed |Added
Summary|[12/13/14/15 Regression]|[12/13/14 Regression] ICE:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119548
Marek Polacek changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116960
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430
Bug 107430 depends on bug 116960, which changed state.
Bug 116960 Summary: ICE: Error reporting routines re-entered
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116960
What|Removed |Added
--
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430
Bug 107430 depends on bug 110242, which changed state.
Bug 110242 Summary: ICE on valid (decltype with lambda)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110242
What|Removed |Added
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110242
Marek Polacek changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|NEW
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430
Bug 107430 depends on bug 118672, which changed state.
Bug 118672 Summary: ICE on template lambda expression return a lambda type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118672
What|Removed |Added
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116960
Marek Polacek changed:
What|Removed |Added
CC||fchelnokov at gmail dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118672
Marek Polacek changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116960
Marek Polacek changed:
What|Removed |Added
CC||stevenxia990430 at gmail dot
com
--- C
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
||mpolacek at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #4 from Marek Polacek ---
Fixed by r15-8988-g50f8148a2754a1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119490
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119490
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
|1
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
Last reconfirmed||2025-03-27
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119401
--- Comment #3 from Marek Polacek ---
We crash in convert_nontype_argument on
gcc_assert (same_type_ignoring_top_level_qualifiers_p
(type, TREE_TYPE (expr)));
because type=struct ._anon_3 and TREE_TYPE (expr)=const struct ._ano
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101881
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Summary|[12/13/14/15 R
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
CC||mpolacek at gcc dot gnu.org
--- Comment #6 from Marek Polacek ---
Fixed by r15-7822.
||mpolacek at gcc dot gnu.org
Keywords||error-recovery
Last reconfirmed||2025-03-24
Status|UNCONFIRMED |NEW
||mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Last reconfirmed||2025-03-24
--- Comment #1 from Marek Polacek ---
clang++ accepts this with:
119446.C:7:5: warning: declaration does not declare anything
[-Wmissing
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
--- Comment #8 from Marek Polacek ---
Looks like after r15-8011 extend_ref_init_temps_1 doesn't properly call
set_up_extended_ref_temp in the TARGET_EXPR case.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119437
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
|NEW
CC||mpolacek at gcc dot gnu.org
Last reconfirmed||2025-03-24
--- Comment #1 from Marek Polacek ---
Confirmed. clang++ says:
119436.C:10:18: error: member '_box' found in multiple base classes of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119401
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
||2025-03-20
Status|UNCONFIRMED |NEW
CC||mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek ---
The ICE started with r9-4042-ga6bb6b07f76c44:
commit a6bb6b07f76c4431cb5a2a520ac33f7c970b80c1
Author
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387
Marek Polacek changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387
--- Comment #7 from Marek Polacek ---
Huh. I guess I should take a look then.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101603
Bug 101603 depends on bug 119344, which changed state.
Bug 119344 Summary: [14/15 Regression] internal compiler error related to
template parameters and pointers to member functions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118104
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116731
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344
Marek Polacek changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
|
CC||mpolacek at gcc dot gnu.org,
||ppalka at gcc dot gnu.org
--- Comment #3 from Marek Polacek ---
Started with r14-9938:
commit 081c1e93d56d35c7314ed68e6d87628b430de917
Author: Patrick Palka
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119347
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344
Marek Polacek changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344
--- Comment #4 from Marek Polacek ---
I guess we need
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -4101,7 +4101,7 @@ skip_simple_arithmetic (tree expr)
computations if they actually occur. */
while (true)
{
- if (UNARY_CLASS_P (e
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
|1
Last reconfirmed||2025-03-17
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119303
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116731
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
--- Comment #13 from Marek Pol
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119328
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
Last
||template function
Priority|P3 |P2
Target Milestone|--- |14.3
CC||jason at gcc dot gnu.org,
||mpolacek at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118104
--- Comment #3 from Marek Polacek ---
A little different test I've been using:
```
template struct Z { };
template struct X {
template using Y = Z;
};
template
using foo = X::Y;
```
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118104
--- Comment #2 from Marek Polacek ---
For "void(Ts, Us)..." in the test we end up in use_pack_expansion_extra_args_p
with a TYPE _PACK_EXPANSION with pattern=void(Ts, Us) and the list of param
packs={Us, Ts}; parm_packs is { Ts -> , Us -> }. W
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117512
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491
Bug 67491 depends on bug 119134, which changed state.
Bug 119134 Summary: [12 Regression] ICE segfault on capturing lambda in fold
expression in requires clause
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119134
What|Removed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119134
Marek Polacek changed:
What|Removed |Added
Summary|[12/13/14/15 Regression]|[12 Regression] ICE
|
|1
Last reconfirmed||2025-03-12
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113349
--- Comment #9 from Marek Polacek ---
When we're parsing "decltype([] {}())", we create auto with idx=0 and level=2
(because current_template_depth==1 and we use a TEMPLATE_TYPE_PARM with a level
one deeper than the actual template parms).
Late
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113349
--- Comment #8 from Marek Polacek ---
A bit more cleaned up (one less decltype):
```
// PR c++/113349
template
struct S { };
template
struct X;
template
struct X {
template using type = int;
};
S::type<1>> s;
```
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96605
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|NEW
|--- |WONTFIX
CC||mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek ---
-fconcepts-ts is no longer supported and the test doesn't ICE/compile without
it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119175
--- Comment #2 from Marek Polacek ---
The infinite looping happens in:
#86 0x0061032f in write_expression (expr=)
at /home/mpolacek/src/gcc/gcc/cp/mangle.cc:3807
#87 0x005ff225 in write_constraint_expression (expr=)
at /
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117512
Marek Polacek changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
,
||mpolacek at gcc dot gnu.org
Summary|ICE segfault on lambda in |[14/15 Regression] ICE
|requires clause of generic |segfault on lambda in
|lambda in requires clause |requires clause of generic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117512
--- Comment #7 from Marek Polacek ---
I think the problem is that we create something like
d = MEM [(struct A *)&TARGET_EXPR [(struct A *)(const struct A &) &e], TARGET_EXPR
in build_over_call:
t = build2 (MODIFY_EXPR, void_type_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118775
Marek Polacek changed:
What|Removed |Added
Summary|[12/13/14/15 Regression]|[12/13/14 Regression] ICE
++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
As discussed in
<https://gcc.gnu.org/pipermail/gcc-patches/2025-March/676945.html>:
```
constexpr int *
f7 ()
{
int *p = new int (2);
delete p;
return p;
}
void
g ()
{
con
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119134
Marek Polacek changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119134
--- Comment #2 from Marek Polacek ---
Started with r12-8258:
commit 65735d21ac410463126114c572999682f987972c
Author: Jason Merrill
Date: Thu Apr 21 17:24:07 2022 -0400
c++: generic lambda fn parm pack [PR104624]
The patch may be just:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119134
Marek Polacek changed:
What|Removed |Added
Target Milestone|--- |12.5
Summary|ICE segfault on
||mpolacek at gcc dot gnu.org
Keywords||ice-on-valid-code
Last reconfirmed||2025-03-06
Status|UNCONFIRMED |NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115580
Marek Polacek changed:
What|Removed |Added
Summary|[12/13/14/15 regression]|[12/13 regression] null
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507
Bug 95507 depends on bug 115580, which changed state.
Bug 115580 Summary: [12/13 regression] null pointer warning from an unevaluated
context
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115580
What|Removed |Ad
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119129
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
|UNCONFIRMED |NEW
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #5 from Marek Polacek ---
Nice reduction. Started with r0-122267-gc73356802f430f so I guess it's not a
dup of PR101533.
c
|NEW
Keywords||needs-bisection,
||needs-reduction
Last reconfirmed||2025-03-04
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
--- Comment #7 from Marek Polacek ---
(In reply to Andrew Pinski from comment #2)
> Here is a C++17 version which crashes from 8.1+:
> template
> void g(T... args) {
> ([args...](auto){}(args), ...);
> }
>
> int main() { g(0, 1); }
This sta
|RESOLVED
CC||mpolacek at gcc dot gnu.org
--- Comment #5 from Marek Polacek ---
Fixed by the PR 109431 patch.
*** This bug has been marked as a duplicate of bug 109431 ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109431
Marek Polacek changed:
What|Removed |Added
CC||pinskia at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113349
--- Comment #7 from Marek Polacek ---
Better test:
```
// PR c++/113349
template void foo() { }
template using tuple_element_t = _Tp;
template struct types;
template struct types {
template using el = tuple_element_t;
};
void
g ()
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115580
Marek Polacek changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97165
Marek Polacek changed:
What|Removed |Added
Assignee|mpolacek at gcc dot gnu.org|unassigned at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109431
Marek Polacek changed:
What|Removed |Added
Summary|[12/13/14/15 Regression]|[12/13/14 Regression] ICE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117436
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
Last
||mpolacek at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #2 from Marek Polacek ---
Fixed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110822
--- Comment #6 from Marek Polacek ---
Planning to backport to 14 too.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114913
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110822
Marek Polacek changed:
What|Removed |Added
CC||jorg.brown at gmail dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118986
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
|1
Last reconfirmed||2025-02-28
CC||mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119060
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
Ever
||2025-02-28
CC||mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW
||mpolacek at gcc dot gnu.org
Last reconfirmed||2025-02-28
Ever confirmed|0 |1
||mpolacek at gcc dot gnu.org
Last reconfirmed||2025-02-28
Status|UNCONFIRMED |NEW
|1
CC||mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117787
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0
at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
||ice-on-valid-code
CC||mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Marek Polacek ---
Started with r13-3601:
commit
1 - 100 of 3422 matches
Mail list logo