From 719379068401749784
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,8fdf6b501ff64059
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-01-06 22:13:02 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Stephen Clamage <stephen.clamage@sun.com>
Newsgroups: comp.std.c++
Subject: Re: Possible DRs
Date: Mon,  7 Jan 2002 06:12:16 GMT
Organization: AT&T Broadband
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <5lof3uk2f6t89sd4ohotn0lvmrqv8pr0s3@4ax.com>
References: <dPlZ7.4047$cD4.7483@www.newsranger.com> <3C36019C.32739F68@sensor.com>
Reply-To: stephen.clamage@sun.com
X-Trace: mail2news.demon.co.uk 1010383971 mail2news:19287 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-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: Sun, 06 Jan 2002 05:38:09 GMT
Lines: 24
Xref: archiver1.google.com comp.std.c++:8834

On Fri,  4 Jan 2002 19:25:10 GMT, Ron Natalie <ron@sensor.com> wrote:
>> 
>> 7) This one is really obscure. A union can contain two members
>> ( with subobjects ) such that these subobjects overlap. Is it legal
>> to assign one sucg object to another?
>
>This is a good one.

Section 5.17, paragraph 8:

If the value being stored in an object is accessed from another object
that overlaps in any way the storage of the first object, then the
overlap shall be exact and the two objects shall have the same type,
otherwise the behavior is undefined.

---
Steve Clamage, stephen.clamage@sun.com

---
[ 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                ]



