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

            Bug ID: 118515
           Summary: [15] Incorrect error message: <typeprefixerror>
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egor.pugin at gmail dot com
  Target Milestone: ---

template <a> auto b() {}
auto c() { return b(0); }

gives (stripped):

note: candidate 1: 'template<<typeprefixerror><anonymous> > auto b()'

See https://godbolt.org/z/P7x3EEnhc

Reply via email to