STL Bug (egcs-2.92.18)

Frank Pilhofer fp@informatik.uni-frankfurt.de
Wed Nov 4 15:23:00 GMT 1998


  Hi,

 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
/local/pkg/egcs/19981101/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.92.18/specs
gcc version egcs-2.92.18 19981101 (gcc2 ss-980609 experimental)


 c++ complains:


rose:~ > g++ -c egcs-bug.cc 
In file included from /local/pkg/egcs/19981101/include/g++-2/algorithm:34,
                 from egcs-bug.cc:6:
/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

-- 
 + Frank Pilhofer                        fp@informatik.uni-frankfurt.de  +
 |                                      http://www.uni-frankfurt.de/~fp/ |
 +---- Life would be a very great deal less weird without you.  - DA ----+


More information about the Gcc-bugs mailing list