[Bug c++/106760] New: ICE: tree check: expected function_decl, have template_decl in get_fndecl_argument_location, at cp/call.cc:7801

hewillk at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Aug 27 13:44:04 GMT 2022


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

            Bug ID: 106760
           Summary: ICE: tree check: expected function_decl, have
                    template_decl in get_fndecl_argument_location, at
                    cp/call.cc:7801
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

struct S {
  template<class> int f();
  int g() const { return f<void>(); }
};

int main() { S().g(); }

https://godbolt.org/z/vcdK4h1Kj


More information about the Gcc-bugs mailing list