Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Tom Vijlbrief
Thu, 26 Jan 1989 10:37
g++ 1.32 allows illegal implicit pointer conversion
Author: Tom Vijlbrief
Date: Thu, 26 Jan 1989 10:37
Date: Thu, 26 Jan 1989 10:37
31 lines
1401 bytes
1401 bytes
g++ 1.32 (under SunOs 3.5, sun 3/60) allows the following
program which is illegal according to Stroustrup's book
(The C++ programming language), example on page 197.
class base {
int m1;
public:
int m2;
};
class derived : base {
};
derived d;
base *pb= &d; // error (private base)
==============================
CC -v -S der.cc
g++ version 1.32.0
/usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix der.cc /tmp/cca07199.cpp
GNU CPP version 1.32
/usr/local/lib/gcc-c++ /tmp/cca07199.cpp -quiet -dumpbase der.cc -noreg -version -o der.s
GNU C++ version 1.32.0 (68k, MIT syntax) compiled by GNU C version 1.32.
===============================================================================
Tom Vijlbrief
TNO Institute for Perception
P.O. Box 23 Phone: +31 34 63 62 77
3769 ZG Soesterberg E-mail: tnosoes!tom@mcvax.cwi.nl
The Netherlands or: uunet!mcvax!tnosoes!tom
===============================================================================
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