Bug 65035 - [5 Regression] ICE (segfault) on arm-linux-gnueabihf
Summary: [5 Regression] ICE (segfault) on arm-linux-gnueabihf
Status: RESOLVED DUPLICATE of bug 65003
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2015-02-12 07:12 UTC by Matthias Klose
Modified: 2015-02-12 13:33 UTC (History)
2 users (show)

See Also:
Host:
Target: arm-linux-gnueabihf
Build:
Known to work: 4.9.2
Known to fail: 5.0
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2015-02-12 07:12:35 UTC
seen with 20150205 on arm-linux-gnueabihf, configured with --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb

$ g++ -c -fPIC -finline-functions -O3 if_algo.ii 
if_algo.ii: In constructor 'D::D(int&, const A&, const A&, const A&, const A&, const A&)':
if_algo.ii:8:7: internal compiler error: Segmentation fault
 class C : virtual B {
       ^
Please submit a full bug report,
with preprocessed source if appropriate.

$ cat if_algo.ii
class A {
public:
  A();
};
class B {
  virtual bool m_fn1(int &, bool) const;
};
class C : virtual B {
  bool m_fn1(int &, bool) const;
  A e;
};
class D : C {
  D(int &, const A &, const A &, const A &, const A &, const A &);
  bool m_fn1(int &, bool) const;
};
bool C::m_fn1(int &, bool) const {}
D::D(int &, const A &, const A &, const A &, const A &, const A &) {}
bool D::m_fn1(int &, bool) const {}
Comment 1 Jakub Jelinek 2015-02-12 08:24:07 UTC
Another dup of PR65003 ?
Comment 2 Ramana Radhakrishnan 2015-02-12 10:39:04 UTC
Works with r220637 - may well be
Comment 3 Ramana Radhakrishnan 2015-02-12 13:33:24 UTC
dup.

*** This bug has been marked as a duplicate of bug 65003 ***