This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/45694] [MinGW64] fortran host associated variables+optimization==failure?



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]