Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!brl-adm!caip!sri-spam!nike!ucbcad!ucbvax!hplabs!tektronix!uw-beaver!uw-june!brian From: brian@uw-june.UUCP Newsgroups: net.lang.c++ Subject: classes derived from typedefs... Message-ID: <1072@uw-june> Date: Sun, 20-Jul-86 20:58:25 EDT Article-I.D.: uw-june.1072 Posted: Sun Jul 20 20:58:25 1986 Date-Received: Mon, 21-Jul-86 07:42:55 EDT Organization: U of Washington Computer Science Lines: 47 Keywords: classes, typedefs 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