This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33109] ICE: segfault while compiling c++ code
- From: "tim at klingt dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2007 18:47:24 -0000
- Subject: [Bug c++/33109] ICE: segfault while compiling c++ code
- References: <bug-33109-12873@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tim at klingt dot org 2007-08-18 18:47 -------
it seems to be related to massive recursive template instantiation of the
following code:
namespace detail
{
template <int n>
always_inline void zerovec_simd_mp_iteration(float *dst, __m128 const &
zero)
{
__m128 *out = (__m128*) dst;
*out = zero;
zerovec_simd_mp_iteration<n-4>((float*)++out, zero);
}
template <>
always_inline void zerovec_simd_mp_iteration<0>(float *dst, __m128 const &
zero)
{
}
}
template <int n>
always_inline void zerovec_simd_mp(float *dst)
{
const __m128 zero = _mm_setzero_ps();
detail::zerovec_simd_mp_iteration<n>(dst, zero);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33109