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

            Bug ID: 71015
           Summary: [7 Regression] ICE in inline_small_functions, at
                    ipa-inline.c:1881
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org
  Target Milestone: ---

Probably since r236012 I get:

trippels@gcc2-power8 voicemail % cat VoicemailParent.ii
struct A {
  virtual unsigned Release() = 0;
};
struct nsCOMPtr_base {
  ~nsCOMPtr_base() { mRawPtr->Release(); }
  A *mRawPtr;
};
struct PVoicemailParent {
  virtual ~PVoicemailParent();
};
struct B : PVoicemailParent, A {
  unsigned Release();
  nsCOMPtr_base mService;
};
unsigned B::Release() {}

trippels@gcc2-power8 voicemail % c++ -O3 -c VoicemailParent.ii
VoicemailParent.ii:15:24: internal compiler error: in inline_small_functions,
at ipa-inline.c:1881
 unsigned B::Release() {}
                        ^
0x1126c37b inline_small_functions
        ../../gcc/gcc/ipa-inline.c:1881
0x1126c37b ipa_inline
        ../../gcc/gcc/ipa-inline.c:2437
0x1126c37b execute
        ../../gcc/gcc/ipa-inline.c:2848
Please submit a full bug report,

Reply via email to