Thread View: gnu.g++.bug
1 messages
1 total messages
Started by chatty%FRLRI61.BITNET
Wed, 13 Dec 1989 16:39
default constructor bug
Author: chatty%FRLRI61.BITNET
Date: Wed, 13 Dec 1989 16:39
Date: Wed, 13 Dec 1989 16:39
35 lines
935 bytes
935 bytes
// g++ 1.36.2 (from g++.ztar.Z, on interviews.stanford.edu) barfs on this code.
class A {
public:
A (int);
};
class B {
public :
B (int = 0);
};
class C {
public:
B b;
C (int);
};
class D : public C {
public :
A a;
D (int);
};
// % g++ -c a.cc
// a.cc: In method D::D ():
// a.cc:26: too few arguments for constructor `A'
// a.cc:26: in base initialization for class `A'
// Stephane Chatty chatty@lri.lri.fr
// chatty@frlri61.bitnet
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