This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5533: g++ segfaults when processing std::accumulate(begin, end, init, invalid_op)
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, mathias dot hasselmann at gmx dot de, nobody at gcc dot gnu dot org
- Date: Thu, 31 Jan 2002 17:03:22 +0100
- Subject: Re: c++/5533: g++ segfaults when processing std::accumulate(begin, end, init, invalid_op)
Hi,
the problem can be reduced to the following test-example:
namespace N
{
template <class T> struct A{};
}
template <class T> void f(T) {}
void g() { f(N::A); } // illegal
This crashes under i686-pc-linux-gnu and mips-sgi-irix6.5 with
gcc 2.95.3 (and probably earlier), 3.0.x and 3.1 (as of 20020128).
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5533