From -4429427612883707374
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,d6320a432a48b109
X-Google-Attributes: gidf78e5,public
From: Ron Natalie <ron@sensor.com>
Subject: Re: initialization of const non-PODs
Date: 2000/02/16
Message-ID: <38A999BD.3A1C3D39@sensor.com>#1/1
X-Deja-AN: 586242731
Content-Transfer-Encoding: 7bit
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
References: <nmmd7pzx91s.fsf@pig.cs.ust.hk>
X-Accept-Language: en
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
Content-Type: text/plain; charset=x-user-defined
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 950642682 mail2news:16175 mail2news mail2news.demon.co.uk
Organization: Sensor Systems
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Mime-Version: 1.0
Newsgroups: comp.std.c++

I agree with what you said.  Only the const A a; line is correct.
I tried it with a couple of compilers and I got the same results you
did though.  The compiler didn't catch the seemingly illegal definitions
of D and E.  No doubt, the fact that the only datamembers present have
proper initializers seems to have thrown the compiler.

By the way, are you working from the draft?  Your section numbers don't line up
with the text of the standard.

---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]




