This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3942: Compiler error 980715



>Number:         3942
>Category:       c++
>Synopsis:       Compiler error 980715
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 04 15:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     term@rmci.net
>Release:        unknown-1.0
>Organization:
>Environment:
Linux Redhat 6.2.
eading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Description:
a.cpp: In function `int main(...)':
a.cpp:17: Internal compiler error 980715.
a.cpp:17: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
a.cpp:17: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
>How-To-Repeat:
#include <stdio.h>
#include <iterator>
#include <algorithm>
#include <functional>
#include <set>
#include <list>

template <class T>
bool is_less_than( const T &x, const T &y ) { return x < y; };

void main() {
        list<int> x;
        x.insert(x.begin(),1);
        x.insert(x.begin(),4);
        x.insert(x.begin(),2);
        x.insert(x.begin(),8);
        sort(x.begin(),x.end(),is_less_than<int>);
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]