Internal compiler error 980715

Nicolai Josuttis nicolai.josuttis@braunschweig.netsurf.de
Tue Dec 1 09:04:00 GMT 1998


Hi the following code for egcs 1.1 results in
 tests.cpp: In function `void f1111()':
 tests.cpp:16: Internal compiler error 980715.
 tests.cpp:16: Please submit a full bug report to `egcs-bugs@cygnus.com'.

call:
 g++ -g -Wall -ansi -I/local/egcs/include/g++  -c tests.cpp

Reading specs from
/local/egcs/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
                                                      


#include <vector>
#define f1 f1111
//---------------------------------------------------------------
template <int val>
void add (int i)
{
    i += val;
}

void f1()
{
    vector<int> coll;
    //...

    for_each (coll.begin(), coll.end(),    // range
              add<10>);                    // operation
}
//---------------------------------------------------------------


Best
-- 
Nico

Nicolai M. Josuttis
http://www.josuttis.de/
nico@josuttis.de




More information about the Gcc-bugs mailing list