Re: Is this legal?



On 30 Mag, 20:12, Craig Powers <craig.pow...@xxxxxxxxxxxxxxx> wrote:
Salvatore wrote:
On 30 Mag, 08:40, robert.corb...@xxxxxxx wrote:
On May 29, 7:07 am, Salvatore <sfilipp...@xxxxxxxxxxx> wrote:

Before someone asks, the error is about the renaming of the specific
versions of foobar
as in
use foo_mod, protect => s_foobar
Can you provide the text of the error message?

Bob Corbett

Actually the culprit is gfortran, the error message is
Error: Name 'foobar' at (1) is an ambiguous reference to 'foobar' from
module 's_foo_mod'

At first I thought it was about the renaming, but it seems to be
something more fundamental; anyway there is nothing ambiguous in this
example (at least, nothing that I can see, and Richard Maine seems to
think the same).

Which version of gfortran? I know that there have been some hiccups
with handling ambiguity (or lack of some) properly, so you may have run
into a bug which was fixed in 4.3 or newer.

It's in both 4.3.0 and in the development snapshot. The issue has
already been notifed to the GCC/gfortran crew.
Salvatore
.



Relevant Pages

  • Re: Is this legal?
    ... Can you provide the text of the error message? ... Name 'foobar' at is an ambiguous reference to 'foobar' from ... I know that there have been some hiccups with handling ambiguity properly, so you may have run into a bug which was fixed in 4.3 or newer. ...
    (comp.lang.fortran)
  • Global Namespace Variables
    ... A colleague of mine insists on using only fully qualified namespace ... tells me "so that foobar is visible everywhere and there is no ambiguity". ...
    (comp.lang.tcl)
  • Re: Is this legal?
    ... Actually the culprit is gfortran, the error message is ... Name 'foobar' at is an ambiguous reference to 'foobar' from ...
    (comp.lang.fortran)
  • Re: Comparing more than one bits?
    ... '=' that uses the two operand types and produces a boolean which is ... ambiguous - although you aren't getting the right error message ... unsigned=signed overload, so there's no ambiguity. ... DOULOS - Developing Design Know-how ...
    (comp.lang.vhdl)
  • Objidl.h problem
    ... can no longer compile. ... The error message indicates an ambiguity because ... IDataObj is defined both in System::Windows::Forms and also in objdl.h. ...
    (microsoft.public.dotnet.framework.windowsforms)