http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48624

           Summary: gfrtran DECL issues in function declaration
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: bur...@gcc.gnu.org


Split off from 48286. Richard writes there:

Btw, fndecl issue - if you build at least cray_pointers_8.f90 with
-fwhole-program
I get

/tmp/ccBnfOGf.o: In function `main':
cray_pointers_8.f90:(.text.startup+0x76): undefined reference to `euler_'
collect2: ld returned 1 exit status

which means the euler fn has a different decl than the one called from main.


I can reproduce this with:
  gfortran -fcray-pointer -O2 -fwhole-program cray_pointers_8.f90

Reply via email to