https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
--- Comment #9 from CVS Commits ---
The master branch has been updated by Marek Polacek :
https://gcc.gnu.org/g:1dabbfb0f4a9fbdc77e1ea4db7302586f00895e1
commit r11-7483-g1dabbfb0f4a9fbdc77e1ea4db7302586f00895e1
Author: Marek Polacek
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
--- Comment #8 from Marek Polacek ---
Alternative patch that I'm more happy about:
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -28761,6 +28761,7 @@ build_deduction_guide (tree type, tree ctor, tree
outer_args, tsubst_flags_t com
tree ded_fn =
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
--- Comment #7 from Marek Polacek ---
Candidate patch:
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -27279,7 +27279,10 @@ type_dependent_expression_p (tree expression)
&& DECL_UNIQUE_FRIEND_P (expression)
&& (!DECL_FRIEND_CONTEXT
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
--- Comment #6 from Marek Polacek ---
(In reply to Arthur O'Dwyer from comment #5)
> Is mine the same bug? Mine is also a regression (trunk crashes where GCC
> 10.2 had succeeded).
>
> // https://godbolt.org/z/Ysh6as
> struct C { void f(auto)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
Arthur O'Dwyer changed:
What|Removed |Added
CC||arthur.j.odwyer at gmail dot
com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
Richard Biener changed:
What|Removed |Added
Priority|P3 |P1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
--- Comment #4 from Marek Polacek ---
Another, valid, where C++20 aggregate CTAD should work:
template
struct E {
template
struct G {
T t;
};
void fn() { G{1}; }
};
void
g () {
E e;
e.fn ();
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
--- Comment #3 from Marek Polacek ---
The same ICE can be triggered with
template
struct E {
template
struct G {
T t;
G(T) { }
};
void fn() { G{1}; }
};
which started with r269093.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
--- Comment #2 from Marek Polacek ---
// PR c++/97034
namespace N {
template struct S {
template S(T, U);
};
} // namespace N
template struct E {
template struct G { T t; };
void fn() { G{N::S{'a', 1}}; }
};
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97034
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0
11 matches
Mail list logo