egcs 1.0.1 still gives internal-error in nested-template-struct

Mark Mitchell mmitchell@usa.net
Mon Jan 12 10:19:00 GMT 1998


>>>>> "Tobias" == Tobias Polzin <polzin@noether.informatik.uni-dortmund.de> writes:

    Tobias> I found this internal-error while compiling a C++-Package
    Tobias> (SoPlex), I reported the bug for egcs 1.0, it's still in
    Tobias> egcs 1.0.1.

    Tobias> template< class T > void sort( T* t, int n ) { struct
    Tobias> /*line5*/ { int operator()(T i, T j) { return (i < j) ? -1
    Tobias> : ((j < i) ? 1 : 0) ; } } c ; sort(t, n, c, 0) ; }

I submitted a patch for this last night.

-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu




More information about the Gcc-bugs mailing list