public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30973]  New: undetected name conflict: variables may be named like modules
@ 2007-02-26 14:42 dfranke at gcc dot gnu dot org
  2007-02-26 16:48 ` [Bug fortran/30973] " burnus at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-02-26 14:42 UTC (permalink / raw)
  To: gcc-bugs

$> cat foo.f90
MODULE foo
END MODULE

PROGRAM test_foo
  USE foo, ONLY:
  INTEGER :: foo
  foo = 1
END PROGRAM

$> gfortran-svn -g -Wall foo.f90 && echo ok
ok

$> gfortran-svn -v
gcc version 4.3.0 20070220 (experimental)

If ", ONLY:" is removed in the USE, gfortran gives:
foo.f90:6.16:

  INTEGER :: foo
               1
Error: Symbol 'foo' at (1) cannot have a type


-- 
           Summary: undetected name conflict: variables may be named like
                    modules
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dfranke at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-31 22:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 14:42 [Bug fortran/30973] New: undetected name conflict: variables may be named like modules dfranke at gcc dot gnu dot org
2007-02-26 16:48 ` [Bug fortran/30973] " burnus at gcc dot gnu dot org
2007-02-26 16:55 ` dfranke at gcc dot gnu dot org
2007-02-26 21:36 ` burnus at gcc dot gnu dot org
2007-02-27 17:44 ` burnus at gcc dot gnu dot org
2007-02-27 17:46 ` patchapp at dberlin dot org
2007-03-08 12:31 ` burnus at gcc dot gnu dot org
2007-03-31 22:05 ` [Bug fortran/30973] [4.1, 4.2 only] " burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).