[Bug c++/89612] internal compiler error: in push_access_scope, at cp/pt.c:237

2019-03-06 Thread mpolacek at gcc dot gnu.org
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,

[Bug c++/89612] internal compiler error: in push_access_scope, at cp/pt.c:237

2019-03-06 Thread mpolacek at gcc dot gnu.org
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;

[Bug c++/89612] internal compiler error: in push_access_scope, at cp/pt.c:237

2019-03-06 Thread mpolacek at gcc dot gnu.org
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()

[Bug c++/89612] internal compiler error: in push_access_scope, at cp/pt.c:237

2019-03-06 Thread mpolacek at gcc dot gnu.org
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();

[Bug c++/89612] internal compiler error: in push_access_scope, at cp/pt.c:237

2019-03-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89612 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|