This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22139] [4.0/4.1 regression] Segfault
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2005 04:32:00 -0000
- Subject: [Bug c++/22139] [4.0/4.1 regression] Segfault
- References: <20050621175735.22139.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-16 04:31 -------
Here is a reduced testcase, reproducible with --param ggc-min-expand=0 --param ggc-min-
heapsize=0:
template <int rank, int dim> class Tensor;
template <int rank, int dim> struct SymmetricTensor { SymmetricTensor (const Tensor<2,dim>
&t); friend void foo(); };
template <> SymmetricTensor<2,2>::SymmetricTensor (const Tensor<2,2> &t) {}
template <> SymmetricTensor<2,3>::SymmetricTensor (const Tensor<2,3> &t) {}
(Thanks to delta for this one)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22139