This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2008 12:57:30 -0000
- Subject: [Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error
- References: <bug-35405-7035@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from dodji at gcc dot gnu dot org 2008-08-13 12:57 -------
A simpler reproducer is:
1 template<typename T>
2 struct a
3 {
4 template <template <typename> class C, typename X, C<X>* =0>
5 struct b
6 {
7 };
8 };
9
10 void
11 foo ()
12 {
13 a<int> v;
14 }
gcc spits the following error:
void foo()
test.cc: At global scope:
test.cc: In instantiation of 'a<int>':
test.cc:13: instantiated from here
test.cc:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dodji at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405