This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18814] Incorrect reinitialization of compound literal
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2004 18:50:12 -0000
- Subject: [Bug c/18814] Incorrect reinitialization of compound literal
- References: <20041203183239.18814.austern@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-03 18:50 -------
But reading 6.5.2.5 P 16 seems to say something different.
What it seems to say is:
p = &((int) {1});
is to set the int to be one and then take the address. We still point to the same int as before.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18814