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++/51658] New: [C++0x] delegating constructor ICE in build_data_member_initialization, at cp/semantics.c:5806


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

             Bug #: 51658
           Summary: [C++0x] delegating constructor ICE in
                    build_data_member_initialization, at
                    cp/semantics.c:5806
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


template<typename T>
struct S
{
  constexpr S() : t() { }

  constexpr S(int) : S() { }

  T t;
};

S<int> p(1);


ice.ii: In instantiation of âconstexpr S<T>::S(int) [with T = int]â:
ice.ii:11:11:   required from here
ice.ii:6:28: internal compiler error: in build_data_member_initialization, at
cp/semantics.c:5806
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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