The attached code produces an error message, yet it is accepted by other
compilers and is judged legal in 
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/82aebb2460cba148#



[EMAIL PROTECTED] bugtest]$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.3.0/configure --prefix=/usr/local/gcc43
--with-mpfr=/u
sr/local/mpfr --with-gmp=/usr/local/gmp
Thread model: posix
gcc version 4.3.0 (GCC) 
[EMAIL PROTECTED] bugtest]$ gfortran -c usemod2.f90
usemod2.f90:39.34:

  use foo_mod, protect => s_foobar
                                 1
Error: Name 'foobar' at (1) is an ambiguous reference to 'foobar' from module
's
_foo_mod'
usemod2.f90:46.34:

  use foo_mod, protect => d_foobar
                                 1
Error: Name 'foobar' at (1) is an ambiguous reference to 'foobar' from module
's
_foo_mod'
usemod2.f90:54.13:

  use foo_mod
            1
Error: Name 'foobar' at (1) is an ambiguous reference to 'foobar' from module
's
_foo_mod'
usemod2.f90:57.16:

  call foobar(z)
               1
Error: There is no specific subroutine for the generic 'foobar' at (1)


-- 
           Summary: nested module inclusion fails
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sfilippone at uniroma2 dot it
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to