This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.
- From: "mikael dot morin at tele2 dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2008 21:16:53 -0000
- Subject: [Bug fortran/37274] [Regression 4.4 (and 4.3?)] error: type name is ambiguous.
- References: <bug-37274-9410@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from mikael dot morin at tele2 dot fr 2008-08-31 21:16 -------
(In reply to comment #10)
> I think your example should be rejected, but it is not like my code, where
> smooth_mesh explicitly USEs class_vector. So, I am not sure what's your point.
My point is this:
As you said in your first comment, there is no ambiguity in your code.
vector is defined in only one module which is used when needed in other
modules.
Moreover you use private statements to prevent use associated entities from
being exported in those modules.
Doing this way, no module but class_vector exports vector. No ambiguity
possible
What my example shows is that tools_math (and other modules in your code)
export vector as well. Ambiguities are possible.
As gfortran seems to handle simple ambiguities correctly, what I'm underlying
is not the bug, but it might be part of it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37274