This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Sep 2013 16:51:20 +0000
- Subject: [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag
- Auto-submitted: auto-generated
- References: <bug-58531-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58531
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is nothing weird on it, there is nothing that would mandate particular
ordering of different compound literals. And, the testcase invokes undefined
behavior, you can't subtract pointers to different arrays.