public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54082] New: Program name shadows other entities with the same name
@ 2012-07-24 12:50 tob.brandt at googlemail dot com
  2012-07-24 15:43 ` [Bug fortran/54082] " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tob.brandt at googlemail dot com @ 2012-07-24 12:50 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54082
           Summary: Program name shadows other entities with the same name
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tob.brandt@googlemail.com


If the name of a program is the same as the name of another
entity (e.g. a function), that entity can not be used in
the program.

---

Example:

program abs
  print *, abs(-1)
end program

Compiling above program fails with this confusing error:

  print *, abs(-1)
              1
Error: Symbol at (1) is not appropriate for an expression

---

I'm not sure if the program is standard conform or not.
If it isn't, then the error message could be improved.


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

end of thread, other threads:[~2015-10-13 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-24 12:50 [Bug fortran/54082] New: Program name shadows other entities with the same name tob.brandt at googlemail dot com
2012-07-24 15:43 ` [Bug fortran/54082] " burnus at gcc dot gnu.org
2012-07-24 15:53 ` burnus at gcc dot gnu.org
2015-10-13 16:42 ` dominiq at lps dot ens.fr

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).