Internal compiler error 980715

Alex Vinokur alexander.vinokur@telrad.co.il
Sun Feb 28 23:30:00 GMT 1999


bbb1.C: In function `int main()':
bbb1.C:26: Internal compiler error 980715.
bbb1.C:26: Please submit a full bug report to `egcs-bugs@cygnus.com'.

//  ------------- C++ CODE BEGIN-----------------------
#include <stl.h>

template <typename T>
T foo (const T& x, const T& y)
{
        return (x + y);
}

main()
{
 vector<int> vec1;
        vec1.push_back (2);
        vec1.push_back (5);
        vec1.push_back (7);
 vector<int> vec2;
        vec2.push_back (10);
        vec2.push_back (100);
        vec2.push_back (1000);
 vector<int> vecRes;

        transform(vec1.begin(), vec1.end(),
                  vec2.begin(), vec2.end(),
                  vecRes.begin(),
                  foo<int>
                  );
}
//  ------------- C++ CODE END-----------------------

uname -a : SunOS tibamsun8 5.6 Generic_105181-09 sun4m sparc
SUNW,SPARCstation-5
g++ -v   : gcc version egcs-2.91.57 19980901 (egcs-1.1 release)





More information about the Gcc-bugs mailing list