[Bug c++/97214] [8/9/10/11 Regression] ICE in lookup_template_class_1, at cp/pt.c:9896

2021-03-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97214

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Marek Polacek  ---
This has been fixed on trunk with r11-7418, so it's a dup.

*** This bug has been marked as a duplicate of bug 95451 ***

[Bug c++/97214] [8/9/10/11 Regression] ICE in lookup_template_class_1, at cp/pt.c:9896

2020-10-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97214

Marek Polacek  changed:

   What|Removed |Added

   Target Milestone|--- |8.5

[Bug c++/97214] [8/9/10/11 Regression] ICE in lookup_template_class_1, at cp/pt.c:9896

2020-10-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97214

Marek Polacek  changed:

   What|Removed |Added

 Ever confirmed|0   |1
Summary|ICE in  |[8/9/10/11 Regression] ICE
   |lookup_template_class_1, at |in lookup_template_class_1,
   |cp/pt.c:9896|at cp/pt.c:9896
   Last reconfirmed||2020-10-26
 CC||jason at gcc dot gnu.org,
   ||mpolacek at gcc dot gnu.org
 Status|UNCONFIRMED |NEW
   Priority|P3  |P2

--- Comment #2 from Marek Polacek  ---
Confirmed.

commit 373d1f5f055ee378e8e773df331da85d0cffc89b
Author: Jason Merrill 
Date:   Fri Jan 26 10:25:23 2018 -0500

PR c++/82514 - ICE with local class in generic lambda.

* pt.c (regenerated_lambda_fn_p): Remove.
(enclosing_instantiation_of): Don't use it.
(tsubst_function_decl): Call enclosing_instantiation_of.

* pt.c (lookup_template_class_1): Add sanity check.
* name-lookup.c (do_pushtag): Don't add closures to local_classes.

From-SVN: r257093