https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104608
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Last reconfirmed|2022-02-20 00:00:00 |2022-02-21 Target Milestone|--- |12.0 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Summary|internal compiler error: in |[12 Regression] internal |cp_parser_template_id, at |compiler error: in |cp/parser.cc:18367 |cp_parser_template_id, at | |cp/parser.cc:18367 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, reduced testcase: class Parameter; template <typename R> class Function : public R { Function(); }; template <typename R> Function<R>::Function() { this->template Parameter<R>(); } ----- CUT ---- Note it is important that the forward declaration of the class Parameter is there even.