This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14448] [3.4/3.5 regression] Segfault in Boost indexed_set
- From: "reichelt at igpm dot rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2004 09:00:03 -0000
- Subject: [Bug c++/14448] [3.4/3.5 regression] Segfault in Boost indexed_set
- References: <20040305152230.14448.giovannibajo@libero.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at igpm dot rwth-aachen dot de 2004-03-08 08:59 -------
Subject: Re: [3.4/3.5 regression] Segfault in Boost indexed_set
On 8 Mar, giovannibajo at libero dot it wrote:
Hi Giovanni,
the testcase in your patch is hosed, the assignement of n should read
"n=1+1" instead of just "n=1". BTW, one can reduce it a litte more, so
here's an updated version:
=========================================
template <int> struct A {};
template<typename T> void foo(T)
{
const int n=1+1;
A<n+1> a;
}
void bar()
{
foo(0);
}
=========================================
Regards,
Volker
> ------- Additional Comments From giovannibajo at libero dot it 2004-03-08 02:39 -------
> Patch posted, waiting for review:
> http://gcc.gnu.org/ml/gcc-patches/2004-03/msg00682.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14448