STL Bug (egcs-2.92.18)

Frank Pilhofer
Wed Nov 4 15:23:00 GMT 1998


 I have found a bug in the STL that comes with the new egcs snapshots.
The attached C++ program fails to compile with

rose:~/uni/mico/test > gcc -v
Reading specs from
gcc version egcs-2.92.18 19981101 (gcc2 ss-980609 experimental)

 c++ complains:

rose:~ > g++ -c 
In file included from /local/pkg/egcs/19981101/include/g++-2/algorithm:34,
/local/pkg/egcs/19981101/include/g++-2/stl_algo.h:449: declaration of `operator long double' as non-function
/local/pkg/egcs/19981101/include/g++-2/stl_algo.h:449: confused by earlier errors, bailing out

 The error disappears if you change the operator from long double to
just double.


 + Frank Pilhofer                +
 |                             |
 +---- Life would be a very great deal less weird without you.  - DA ----+

More information about the Gcc-bugs mailing list