This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/45694] [MinGW64] fortran host associated variables+optimization==failure?
- From: "jpr at csc dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2010 11:05:21 -0000
- Subject: [Bug target/45694] [MinGW64] fortran host associated variables+optimization==failure?
- References: <bug-45694-11807@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jpr at csc dot fi 2010-09-20 11:05 -------
Even simpler testcase, now in C.
#include <stdio.h>
#include <stdlib.h>
void a()
{
char s[2];
void b() {
char p[4096];
if ( strcmp(s,"s")!=0 ) abort();
strcpy( p,"p");
}
strcpy( s,"s" );
b();
}
main()
{
a();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45694