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 fortran/50072] gfortran must not accept same name for external and common


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-08-13 11:21:34 UTC ---
Gfortran gives the following error with -std=f95 (gfortran 4.4.6 to trunk):

[macbook] f90/bug% gfc -std=f95 pr50072.f90
pr50072.f90:2.17:

      common/sub/ a
                 1
Error: Fortran 2003: COMMON block 'sub' at (1) that is also a global procedure

but not with -std=f2003 nor with -std=f2008 as expected from the above error.
This behavior has been introduced by revision 126279 (pr25062). For discussion
and some pending corner cases see pr32515.

*** This bug has been marked as a duplicate of bug 25062 ***


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