Re: SGI introduced a bug in 7.41 compiler?

From: Richard E Maine (nospam_at_see.signature)
Date: 09/21/04


Date: 21 Sep 2004 09:09:02 -0700

Bil Kleb <Bil.Kleb@NASA.Gov> writes:

> According to ifc, ifort, lf95, nagf95, nasf95, pgf90, and the
> 7.3.1.2m version of SGI's f90 compiler, the follow code is ok:
  [elided]

> However, version 7.41 of SGI's compiler does not think so:
...
> Local-name "A_LOCAL" must only be referenced once in a rename-list in this scope.
...
> Bug?

Yep. I'd say so.

In addition to the fact that I don't see anything wrong in general,
the message is "obviously" nonsense in that a_local *IS* only
referenced once in a rename-list any particular scope. The two
rename-lists are in different scopes.

Seems to me that I recall something vaguely similar mentioned in the
newsgroup recently (well, in the past few months). I don't remember
what compiler or exactly what code, but I do recall a compiler
complaining about conflicts in a scoping unit when the things in
question were actually in two different scoping units. Admitedly, that's
a pretty loose connection, so it might have been unrelated.

-- 
Richard Maine                       |  Good judgment comes from experience;
email: my first.last at org.domain  |  experience comes from bad judgment.
org: nasa, domain: gov              |        -- Mark Twain


Relevant Pages

  • Re: C# equivalent to a smart pointer???
    ... The basic idea is that the compiler may detect ... It showed up in some sample code in the documentation. ... The issue is that the lifetime of a local variable is NOT determined by ... within the same scope if it's not used in any code past a certain point. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VLA and goto -- diagnostic required?
    ... I'm currently working on updating an older compiler up to C99. ... however, just jumps over the actual VLA declaration, within the ... "A goto statement shall not jump from outside the scope of an ...
    (comp.lang.c)
  • Re: Implementation of control structures
    ... the innermost lexical scope for is destroyed, ... Also, if you have an interpreter instead of a compiler, you may have ... you must unwind the scope up to the block ...
    (comp.lang.lisp)
  • compile help please
    ... I'm trying to compile tesseract from svn so I can do ocr. ... checking for C++ compiler default output file name... ... checking for ranlib... ... scrollview.cpp:63: error: 'strncpy' was not declared in this scope ...
    (Debian-User)
  • Re: OT: C++ help
    ... But the compiler gets confused depending on the access ... Why should it attempt to use the private function when the ... access specifier is public but will happily use the public function ... You keep talking about scope. ...
    (Debian-User)