public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104295] New: ICE: tree check: expected template_decl, have error_mark in build_deduction_guide, at cp/pt.cc:29079
@ 2022-01-31  3:37 hewillk at gmail dot com
  2022-01-31  4:08 ` [Bug c++/104295] " pinskia at gcc dot gnu.org
  2022-01-31 14:49 ` ppalka at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: hewillk at gmail dot com @ 2022-01-31  3:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104295
           Summary: ICE: tree check: expected template_decl, have
                    error_mark in build_deduction_guide, at cp/pt.cc:29079
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

template<class>
struct B;

template <class R>
struct B<R()> {
  template<class T>
  struct C { C(T); };
};

int main() {
  B<void()>::C{0};
}

https://godbolt.org/z/5rxvbd3oe

Maybe dup of Bug 104294, but since their error message is different I opened
this one.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-31 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31  3:37 [Bug c++/104295] New: ICE: tree check: expected template_decl, have error_mark in build_deduction_guide, at cp/pt.cc:29079 hewillk at gmail dot com
2022-01-31  4:08 ` [Bug c++/104295] " pinskia at gcc dot gnu.org
2022-01-31 14:49 ` ppalka at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).