This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95.2: ICE on incorrect C++ code
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-2.95.2: ICE on incorrect C++ code
- From: Andris Pavenis <pavenis at latnet dot lv>
- Date: Fri, 14 Jul 2000 15:22:20 +0200
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;
}