This is the mail archive of the
gcc-prs@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: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 31 Jan 2002 15:46:05 -0000
- Subject: Re: c++/5533: g++ segfaults when processing std::accumulate(begin, end, init, invalid_op)
- Reply-to: Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following reply was made to PR c++/5533; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, mathias.hasselmann@gmx.de,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/5533: g++ segfaults when processing std::accumulate(begin, end, init, invalid_op)
Date: Thu, 31 Jan 2002 17:03:22 +0100
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