This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/28778] [4.0/4.1 Regression] alias bug with cast and call clobbered
- From: "drow at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2006 22:25:53 -0000
- Subject: [Bug tree-optimization/28778] [4.0/4.1 Regression] alias bug with cast and call clobbered
- References: <bug-28778-1447@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #47 from drow at gcc dot gnu dot org 2006-11-05 22:25 -------
Subject: Re: [4.0/4.1 Regression] alias bug with cast and call clobbered
On Sun, Nov 05, 2006 at 10:17:16PM -0000, chuck at vertica dot com wrote:
> Folks, can anyone please tell me if this is the same problem as I am seeing
> here using gcc 4.0.2 for x86_64:
No. Your code is simply invalid; this is a FAQ.
> inline long long Vgetbytes(double f) {
> return *reinterpret_cast<const long long *>(&f);
> }
"f" is an object of type double and may not be accessed through a
pointer to "const long long".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778