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/63649] [5 Regression] ICE: Segmentation fault in gcc/ipa-comdats.c:332


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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.8.3, 4.9.2
   Last reconfirmed|                            |2014-10-26
          Component|c++                         |ipa
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|5.0: ICE with init_priority |[5 Regression] ICE:
                   |                            |Segmentation fault in
                   |                            |gcc/ipa-comdats.c:332
   Target Milestone|---                         |5.0
      Known to fail|                            |5.0

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r210597.

A bit more reduced:

markus@x4 /tmp % cat ipa.ii

struct A
{
  typedef void Func ();
  A () = default;
  void *_base;
};
struct B
{
  struct Ctor_vector
  {
    void m_fn1 (A::Func);
  } ctors;
};
template <typename> class C : B
{
public:
  C ();
  static void
  m_fn2 ()
  {
  }
};

A b;
__attribute__ ((init_priority (0xfffe))) C<int> a;
template <typename T> C<T>::C () { ctors.m_fn1 (m_fn2); }


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