From -6711067582182379620 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,fe27635c57b20d94 X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2002-03-07 09:07:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!newsfeed.wirehub.nl!shale.ftech.net!news.ftech.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: "Garry Lancaster" Newsgroups: comp.std.c++ Subject: Re: Base class can't be typedef. Why? Date: Thu, 7 Mar 2002 17:06:08 GMT Organization: ntlworld News Service Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: References: X-Trace: mail2news.demon.co.uk 1015520777 mail2news:9959 mail2news mail2news.demon.co.uk X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 NNTP-Posting-Date: Thu, 07 Mar 2002 17:02:01 GMT Lines: 36 Xref: archiver1.google.com comp.std.c++:9900 Garry Lancaster: > > However para 7.1.3/4 of the standard says: > > > > "A typedef-name that names a class is a class-name (9.1). > > If a typedef-name is used following the class-key > > in an elaborated-type-specifier (7.1.5.3) or in the > > class-head of a class declaration...the program is ill-formed." > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jens Kilian: > I would parse this paragraph as > > "If a typedef-name is used > following the class-key in an elaborated-type-specifier (7.1.5.3) > or > following the class-key in the class-head of a class declaration (9) > [...] the program is ill-formed." Of course! Thanks, that makes a lot more sense. > Is this worth a defect report for unclear language? I'm not sure. Kind regards Garry Lancaster Codemill Ltd Visit our web site at http://www.codemill.net --- [ comp.std.c++ is moderated. To submit articles, try just posting with ] [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.research.att.com/~austern/csc/faq.html ]