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

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


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
 
 



More information about the Gcc-prs mailing list