c++/5533: g++ segfaults when processing std::accumulate(begin, end, init, invalid_op)

Reichelt reichelt@igpm.rwth-aachen.de
Thu Jan 31 09:03:00 GMT 2002


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




More information about the Gcc-bugs mailing list