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]

Re: Compiler-Bug in egcs-1.1.1


Marcus Ritt wrote:
> Compiler Version:       gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
> where.C: In method `int X::look_at<template <class V> my_container<V>, int>
> (struct my_container<int> &)':
> where.C:18:   instantiated from here
> where.C:10: Internal compiler error.
> where.C:10: Please submit a full bug report to `egcs-bugs@cygnus.com'.
> where.C:10: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
With the 19990131 snapshot, this code compiles without error, once a return
type for look_at has been inserted (or -fpermissive supplied). As posted, the
code produces a diagnostic.

nathan@manao:402>uname -a && ss-g++ -v
SunOS manao 5.6 Generic_105181-03 sun4u sparc SUNW,Ultra-5_10
Reading specs from
/local/nathan/ss/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.93.04/specs
gcc version egcs-2.93.04 19990131 (gcc2 ss-980929 experimental)
nathan@manao:403>ss-g++ foo.cc        
foo.cc:9: ANSI C++ forbids declaration `look_at' with no type
nathan@manao:404>ss-g++ foo.cc -fpermissive
foo.cc:9: warning: ANSI C++ forbids declaration `look_at' with no type

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
      You can up the bandwidth, but you can't up the speed of light      
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk


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