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 c++/64994] [5 Regression] Firefox build error: ICE: in cxx_eval_call_expression, at cp/constexpr.c:1353


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

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 test % cat nsGfxScrollFrame.ii
class TimeStamp {
public:
  constexpr TimeStamp() : mValue() {}
  int mValue;
};

class A {
  class B;
  A(bool);
};
class C {
  TimeStamp mFadeBeginTime;
};
class A::B {
public:
  B(int) {}
  TimeStamp mPrevEventTime[1];
};

A::A(bool) {
  new C;
  B(0);
}

markus@x4 test % g++ -c --std=c++11 nsGfxScrollFrame.ii
nsGfxScrollFrame.ii: In constructor âA::B::B(int)â:
nsGfxScrollFrame.ii:16:10:   in constexpr expansion of âTimeStamp()â
nsGfxScrollFrame.ii:16:10: internal compiler error: in
cxx_eval_call_expression, at cp/constexpr.c:1353

Reverting r220544 "fixes" the issue.

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