https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89612
--- Comment #5 from Marek Polacek ---
...which started crashing with r209907:
DR 1351
Represent the unevaluated exception specification of an implicitly
declared or deleted function with a simple placeholder,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89612
--- Comment #4 from Marek Polacek ---
And a better testcase, and actually valid:
template
struct C {
template
friend int foo() noexcept(N);
};
template
int foo() noexcept(N);
C c;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89612
--- Comment #3 from Marek Polacek ---
(In reply to Marek Polacek from comment #2)
> Reduced (invalid):
>
> template bool b;
>
> template
> struct C {
> template friend int foo() noexcept(b<1>);
> };
>
> template int foo()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89612
--- Comment #2 from Marek Polacek ---
Reduced (invalid):
template bool b;
template
struct C {
template friend int foo() noexcept(b<1>);
};
template int foo() noexcept(b<1>);
auto a = C();
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89612
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|