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

             Bug #: 51224
           Summary: ICE with local struct and -flto
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: reich...@gcc.gnu.org


The following code snippet triggers an ICE when compiled with "-flto -g" since
the introduction of LTO (GCC 4.5.0):

=========================================
void foo()
{
  struct A
  {
    typedef void (*F)();
    static F bar() { return 0; }
  };

  A::bar();
}
=========================================

bug.cc:10:1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:21346
Please submit a full bug report, [etc.]

Reply via email to