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]

gcc-2.95.2: ICE on incorrect C++ code


I got ICE on following incorrect C++ code (	template arguments were
swapped, if I fix this problem ICE disappears). No preprocessed source as
example uses STL only. I verified that I'm getting ICE also with gcc-2.96
20000713

target: i586-pc-linux-gnu

Andris
#include <vector>
#include <algorithm>
#include <functional>

struct foo
  {
       double   b;
       double   c;
       double   F (void) const;
  };

int     bar (vector<foo> & data, vector<double> & res)
  {
        transform (data.begin(), data.end(), back_inserter(res),
                  mem_fun_ref<foo,double> (&foo::F) );
        return 0;
  }

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