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++/68890] [5/6 Regression] ICE in verify_ctor_sanity, at cp/constexpr.c:2113


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-12-14
                 CC|                            |trippels at gcc dot gnu.org
            Summary|[5.3 Regression] ICE in     |[5/6 Regression] ICE in
                   |verify_ctor_sanity, at      |verify_ctor_sanity, at
                   |cp/constexpr.c:2113         |cp/constexpr.c:2113
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat ctor.ii
class ptr;
template <long _Nm> struct A { typedef ptr _Type[_Nm]; };
template <long _Nm> struct B { typename A<_Nm>::_Type _M_elems; };
template <long N> class FixedVector : B<N> {
public:
  typedef B<1> base;
  constexpr FixedVector() : base(), size_() {}
  char size_;
};
class ptr {
public:
  constexpr ptr() : px_(){};
  int px_;
};
FixedVector<1> a;

markus@x4 tmp % g++ -std=c++14 -c ctor.ii
ctor.ii:15:16:   in constexpr expansion of
âa.FixedVector<N>::FixedVector<1l>()â
ctor.ii:7:43:   in constexpr expansion of
â((FixedVector<1l>*)this)->FixedVector<1l>::<anonymous>.B<1l>::B()â
ctor.ii:15:16: internal compiler error: in verify_ctor_sanity, at
cp/constexpr.c:2158

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