Menu

#353 Fortran - segmentation fault

v1.0 (example)
closed-works-for-me
nobody
None
5
2017-01-24
2013-10-25
betonkanu
No

Hi,
I'm testing Fortran with 2003 features. Program compiles with no errors but crashes with a segmentation fault - invalid memory reference.

The program does what I expect, but crashes at the end .

Tested on 2 machines under Windows 7 with 32 bit and 64 bit. Using a 32-bit and 64 bit compiler version. But the program works fine using Intel Fortran Compiler.

the code is attached.

Thanks

4 Attachments

Discussion

  • betonkanu

    betonkanu - 2013-10-25

    sorry, here the compiler versions:
    x64-4.8.1 release-posix-seh-rev5

    the 32-bit version on the other machine is also 4.8.1

     
  • Kai Tietz

    Kai Tietz - 2014-03-12

    Hmm, does this issue still exists for you with recent gcc-version? It might be related to an already fixed issue in fesetenv. Otherwise you might want to report this issue on gcc's bugzilla. There are more fortran-experts to be found

     
  • Alexx83

    Alexx83 - 2015-01-20

    Is it still not resolved in latest toolchains?

     
  • Kai Tietz

    Kai Tietz - 2017-01-24
    • status: open --> closed-works-for-me
     

Log in to post a comment.