https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100252

            Bug ID: 100252
           Summary: Internal compiler error during template instantiation
           Product: gcc
           Version: 10.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sand at rifkin dot dev
  Target Milestone: ---

An internal compiler error occurs while compiling this template code:
https://godbolt.org/z/rP9Wf97vP.

Error message:
<source>: In member function 'typename example::Ac<B>::gt<I>::k& tcc<A>::gr()
[with int I = 1; A = {float, int}]':
<source>:97:62: internal compiler error: in replace_placeholders_r, at
cp/tree.c:3332
   97 |         return typename example::Ac<A...>::template gt<I>{k}.K;
      |                                                     ~~~~~~~~~^
0x1cff079 internal_error(char const*, ...)
        ???:0
0x6bac69 fancy_abort(char const*, int, char const*)
        ???:0
0x13971f3 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ???:0

Reply via email to