This is the mail archive of the 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 `'.
> where.C:10: See <URL:> 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
gcc version egcs-2.93.04 19990131 (gcc2 ss-980929 experimental)
nathan@manao:403>ss-g++ ANSI C++ forbids declaration `look_at' with no type
nathan@manao:404>ss-g++ -fpermissive warning: ANSI C++ forbids declaration `look_at' with no type

Dr Nathan Sidwell :: Computer Science Department :: Bristol University
      You can up the bandwidth, but you can't up the speed of light

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