[Bug fortran/24878] subroutine getting called illegally as a function

2019-11-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24878

Thomas Koenig  changed:

   What|Removed |Added

   Last reconfirmed|2018-01-05 00:00:00 |2019-11-24

--- Comment #6 from Thomas Koenig  ---
Just taking a look at this again.

There are two points where an error could be issued.
First,

INTEGER X, Y, SUBA
EXTERNAL SUBA

clashes with

SUBROUTINE SUBA(X)

so we could flag this going through the global list
of symbols.

Second,

  EXTERNAL SUBA
  CALL ANY (FNC, X, Y)
  INTEGER FNC

should also clash with

  SUBROUTINE SUBA(X)

but that is much harder, because we would then have to check
for the argument that is passed to ANY.

[Bug fortran/24878] subroutine getting called illegally as a function

2019-01-19 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24878

Jürgen Reuter  changed:

   What|Removed |Added

 CC||juergen.reuter at desy dot de

--- Comment #5 from Jürgen Reuter  ---
This is not caught by ifort or PGI fortran either. Nagfor, however, gets it.

[Bug fortran/24878] subroutine getting called illegally as a function

2018-01-05 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24878

Thomas Koenig  changed:

   What|Removed |Added

   Last reconfirmed|2006-06-04 10:01:56 |2018-1-5
 CC||tkoenig at gcc dot gnu.org
   Severity|minor   |enhancement

--- Comment #4 from Thomas Koenig  ---
Still no error issues, not even with -flto.

[Bug fortran/24878] subroutine getting called illegally as a function

2009-04-14 Thread dominiq at lps dot ens dot fr


--- Comment #3 from dominiq at lps dot ens dot fr  2009-04-14 12:20 ---
At revision 145996, this error is not detected with the -fwhole-file option:

[karma] f90/bug% gfc -fwhole-file pr24878_db.f90
[karma] f90/bug% a.out 
 Did NOT catch this error


-- 


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



[Bug fortran/24878] subroutine getting called illegally as a function

2006-01-03 Thread dje at gcc dot gnu dot org


--- Comment #2 from dje at gcc dot gnu dot org  2006-01-03 16:29 ---
Not powerpc-specific.


-- 

dje at gcc dot gnu dot org changed:

   What|Removed |Added

  GCC build triplet|powerpc64-linux |
   GCC host triplet|powerpc64-linux |
 GCC target triplet|powerpc64-linux |


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




[Bug fortran/24878] subroutine getting called illegally as a function

2005-11-15 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-15 19:45 ---
Confirmed, but minor since a lot of the other fortran implemenations don't
detect it either.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|normal  |minor
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2005-11-15 19:45:33
   date||


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