This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ipa/60058] New: [4.9 Regression] internal compiler error: Segmentation fault


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

            Bug ID: 60058
           Summary: [4.9 Regression] internal compiler error: Segmentation
                    fault
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

markus@x4 common % cat test.ii
typedef enum {} UErrorCode;
class A {
public:
  virtual A &m_fn1(A &, const A &, UErrorCode &) const;
  void m_fn2();
  A();
  A(int);
};
class __attribute__((visibility("default"))) B : public A {
public:
  B(A &p1) : norm2(p1), set(0) {}
  A &m_fn1(A &, const A &, UErrorCode &) const;
  A &norm2;
  const int &set;
};

UErrorCode a;
A c;
void fn1(A *p1) {
  A b;
  p1->m_fn1(b, 0, a).m_fn2();
}

void fn2() {
  B d(c);
  fn1(&d);
}

markus@x4 common % g++ -c -O2 test.ii
test.ii:27:1: internal compiler error: Segmentation fault
 }
 ^
0xb4d18f crash_signal
        ../../gcc/gcc/toplev.c:337
0x103ef73 contains_struct_check
        ../../gcc/gcc/tree.h:2822
0x103ef73 ipa_get_indirect_edge_target_1
        ../../gcc/gcc/ipa-cp.c:1576
0x9d1360 estimate_edge_devirt_benefit
        ../../gcc/gcc/ipa-inline-analysis.c:2945
0x9d1360 estimate_edge_size_and_time
        ../../gcc/gcc/ipa-inline-analysis.c:2977
0x9d1360 estimate_calls_size_and_time
        ../../gcc/gcc/ipa-inline-analysis.c:3030
0x9d1872 estimate_node_size_and_time
        ../../gcc/gcc/ipa-inline-analysis.c:3117
0x9d4cb7 do_estimate_edge_size(cgraph_edge*)
        ../../gcc/gcc/ipa-inline-analysis.c:3660
0x9d4e62 estimate_edge_size
        ../../gcc/gcc/ipa-inline.h:277
0x9d4e62 estimate_edge_growth
        ../../gcc/gcc/ipa-inline.h:289
0x9d4e62 do_estimate_growth_1
        ../../gcc/gcc/ipa-inline-analysis.c:3771
0x82a4de cgraph_for_node_and_aliases(cgraph_node*, bool (*)(cgraph_node*,
void*), void*, bool)
        ../../gcc/gcc/cgraph.c:2209
0x9d537a do_estimate_growth(cgraph_node*)
        ../../gcc/gcc/ipa-inline-analysis.c:3785
0x105073b estimate_growth
        ../../gcc/gcc/ipa-inline.h:264
0x105073b inline_small_functions
        ../../gcc/gcc/ipa-inline.c:1565
0x105073b ipa_inline
        ../../gcc/gcc/ipa-inline.c:2025
0x105073b execute
        ../../gcc/gcc/ipa-inline.c:2381
Please submit a full bug report,
with preprocessed source if appropriate.

Started with r207447.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]