This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54744] New: internal compiler error: Segmentation fault, by dependent base, member typedef and ctor-initializer
- From: "ai.azuma at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Sep 2012 09:09:56 +0000
- Subject: [Bug c++/54744] New: internal compiler error: Segmentation fault, by dependent base, member typedef and ctor-initializer
- Auto-submitted: auto-generated
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.