This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]