public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/51790] New: Broken ambiguity check when combining generic with nongeneric procedures
@ 2012-01-07 23:31 burnus at gcc dot gnu.org
2013-06-20 10:29 ` [Bug fortran/51790] " dominiq at lps dot ens.fr
0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-01-07 23:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51790
Bug #: 51790
Summary: Broken ambiguity check when combining generic with
nongeneric procedures
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Blocks: 51578
Another bug which blocks my progress with PR 51578.
If one compiles
gfortran.dg/generic_11.f90
one gets the error:
call foo ! { dg-error "is an ambiguous reference" }
1
Error: Name 'foo' at (1) is an ambiguous reference to 'foo' from module
'm_foo'
However, if one swaps the order of
use m_foo
use m_bar
no error is printed.
The reason is that in symbol's gfc_find_sym_tree one has the check:
if (st->ambiguous && !st->n.sym->attr.generic)
{
ambiguous_symbol (name, st);
However, one of the "foo" is generic and the other isn't. Thus, depending which
one is first in the symtree, an error is printed or not.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/51790] Broken ambiguity check when combining generic with nongeneric procedures
2012-01-07 23:31 [Bug fortran/51790] New: Broken ambiguity check when combining generic with nongeneric procedures burnus at gcc dot gnu.org
@ 2013-06-20 10:29 ` dominiq at lps dot ens.fr
0 siblings, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-06-20 10:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51790
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-06-20
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Sill present at revision 200223.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-20 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-07 23:31 [Bug fortran/51790] New: Broken ambiguity check when combining generic with nongeneric procedures burnus at gcc dot gnu.org
2013-06-20 10:29 ` [Bug fortran/51790] " 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).