Thread View: net.lang.c++
1 messages
1 total messages
Started by brian
Mon, 21 Jul 1986 00:58
classes derived from typedefs...
Author: brian
Date: Mon, 21 Jul 1986 00:58
Date: Mon, 21 Jul 1986 00:58
47 lines
1458 bytes
1458 bytes
I am trying to compile a program with the following classdefs..
class a {
...
};
typedef a b;
class c : b {
...
};
cfront complains that "class a is an undefined base class" at the
class c definition. This seems wrong. I can declare object of both type a and
b with no problems, it just won't let me derive from something of
type "typedef a".
If I change the defs to read:
typedef class {
...
} a;
typedef a b;
class c : b {
...
};
it will compile just fine.
I can usually get around the problem with #defines for cpp, but there are
some cases where this doesn't do exactly what I want.
Is this a problem that has (choose one):
1. been reported?
2. been fixed in 1.1?
3. to do with my own ignorance about something very subtle?
--------------------------------------------------
Brian Bershad
brian@uw-bluechip.arpa
bershad@ucbvax.berkeley.edu
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