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++/54744] New: internal compiler error: Segmentation fault, by dependent base, member typedef and ctor-initializer


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

             Bug #: 54744
           Summary: internal compiler error: Segmentation fault, by
                    dependent base, member typedef and ctor-initializer
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ai.azuma@gmail.com


Created attachment 28298
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28298
Output of -v option and preprocessed file

The following valid code causes segfault with GCC 4.8.0 20120916 and GCC 4.7.3
20120922.

///////////////////////////////////////////////////////////
template <typename T>
struct base {
  typedef base base_type;
};

template <typename T>
struct derived : base<T> {
  typedef typename derived::base_type::base_type base_type;
  derived() : base_type() {}
};
///////////////////////////////////////////////////////////

Note that the above code compiles successfully with GCC 4.6.4 20120921.


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