🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Kenneth Newman Thu, 12 Oct 1989 16:40
front end bug
#498
Author: Kenneth Newman
Date: Thu, 12 Oct 1989 16:40
18 lines
685 bytes
	The following program run with version 1.35.0 on a Sun 3/140-M8
using Sun UNIX 4.2 Release 3.4 printed "E" not "D".
#include <stream.h>
class D {
 public:
  void f(){cout << "D\n";}
  int y;
};
class E : public D{
 public:
  void f(){cout << "E\n";}
};

main(){
E w;
w.D::f();
}
Re: front end bug
#499
Author: Doug Schmidt
Date: Thu, 12 Oct 1989 17:40
28 lines
1312 bytes
In article <8910121640.AA12659@grn.umb.edu>, kwn@grn (Kenneth Newman) writes:
>
>	The following program run with version 1.35.0 on a Sun 3/140-M8
>using Sun UNIX 4.2 Release 3.4 printed "E" not "D".
>#include <stream.h>
>class D {
> public:
>  void f(){cout << "D\n";}
>  int y;
>};
>class E : public D{
> public:
>  void f(){cout << "E\n";}
>};
>
>main(){
>E w;
>w.D::f();
>}

This appears to be fixed in the g++ 1.36 beta.

Doug
--
Master Swordsman speak of humility;             | schmidt@ics.uci.edu (ARPA)
Philosophers speak of truth;                    | office: (714) 856-4034
Saints and wisemen speak of the Tao of no doubt;
The moon, sun, and sea speaks for itself. -- Hiroshi Hamada
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads