[Bug c++/79500] New: non-template deduction guides cause crash

richard-gccbugzilla at metafoo dot co.uk gcc-bugzilla@gcc.gnu.org
Tue Feb 14 02:05:00 GMT 2017


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

            Bug ID: 79500
           Summary: non-template deduction guides cause crash
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
  Target Milestone: ---

Testcase:

template<typename T> struct A {};
A(...) -> A<int>;
A a = {};


results in:

<source>:3:8: internal compiler error: tree check: expected template_decl, have
function_decl in do_class_deduction, at cp/pt.c:25096
A a = {};
       ^


More information about the Gcc-bugs mailing list