struct A {};

template <class T>
struct B : public T
{
  B ();
};

B<A> *
foo ()
{
  return new B<A>();
}

template <class T>
B<T>::B ()
{
}

template <>
B<A>::B ()
{
}

ICEs at -O3 i inline_forbidden_p:
1448      FOR_EACH_BB_FN (bb, DECL_STRUCT_FUNCTION (fndecl))
as fndecl (B ctor) doesn't have cfg set (DECL_STRUCT_FUNCTION (fndecl)->cfg ==
NULL).


-- 
           Summary: [4.1/4.2 regression] ICE in inline_forbidden_p
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058

Reply via email to