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]

Bug report


Version:
Reading 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)

Source file:
#include <iostream.h>

template <class SAME> struct test {
   void func() { cout<<__PRETTY_FUNCTION__<<endl; }
   };
 
struct A : test<A> {
   };

struct B : virtual A, test<B> {
   };

void main() {
   B b;
   b.test::func();
   //b.A::test::func();
   }

Command & output:
[...]$ g++ include.cc
include.cc: In function `int main(...)':
include.cc:15: Internal compiler error.
include.cc:15: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
include.cc:15: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
 


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