This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: simple example -O3 optimizer problem?
- From: Andrew Haley <aph at redhat dot com>
- To: Dennis Luehring <dl dot soluz at gmx dot net>, gcc at gcc dot gnu dot org
- Date: Fri, 18 Jul 2014 09:29:42 +0100
- Subject: Re: simple example -O3 optimizer problem?
- Authentication-results: sourceware.org; auth=none
- References: <53C8CD0F dot 4090502 at gmx dot net>
On 18/07/14 08:30, Dennis Luehring wrote:
> int* array = (int*)&argv;
This looks like undefined behaviour. Don't you get a warning?
Andrew.