This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: is portable aliasing possible in C++?
- From: Jason Merrill <jason at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, Andrew Haley <aph at redhat dot com>, Andy Webber <andy at aligature dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 10 Sep 2014 10:31:36 -0400
- Subject: Re: is portable aliasing possible in C++?
- Authentication-results: sourceware.org; auth=none
- References: <A76FB9DDEDFA994BAF6B77704A4AF465BC2464 at xchmbbal502 dot ds dot susq dot com> <CADa0DUiuqwF2rbvBcUQOFMN7iVMtedryYLO3i1gCskSRdcOvtg at mail dot gmail dot com> <5408988E dot 2060301 at redhat dot com> <CAH6eHdQxUNL0EbKJpT+qWfq_0py4eGQjqSKG99hjcWn3CBgOTg at mail dot gmail dot com> <5409C666 dot 4050607 at redhat dot com> <CAFiYyc2dhncsXNEDepUnW2f8-ymTP3eziow8-zF3M3f42ByA9w at mail dot gmail dot com>
I asked the C++ committee core language mailing list about this, and
everyone that has weighed in seems to agree that after placement new the
of the object value is indeterminate, so no type-punning.
Jason