[Bug fortran/40995] [4.5 Regression] Spurious "Type specified for intrinsic function...ignored" message
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 7 12:06:00 GMT 2009
------- Comment #1 from burnus at gcc dot gnu dot org 2009-08-07 12:06 -------
Confirmed. Thanks for the report.
Janus, I think it is another side effect of your intrinsic patches. In 4.4
attr.implicit_type is "1" but now on 4.5 it is "0". ts is set in
resolve_intrinsic. Maybe it was no addition and only the order was changed?
When fixing it, one should make sure that
intrinsic abs
real abs
still prints a warning with -Wsurprising.
Code in resolve.c:
if ((isym = gfc_find_function (sym->name)))
{
if (sym->ts.type != BT_UNKNOWN && gfc_option.warn_surprising
&& !sym->attr.implicit_type)
gfc_warning ("Type specified for intrinsic function '%s' at %L is"
" ignored", sym->name, &sym->declared_at);
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2009-08-07 12:06:04
date| |
Summary|Spurious "Type specified for|[4.5 Regression] Spurious
|intrinsic |"Type specified for
|function...ignored" message |intrinsic
| |function...ignored" message
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40995
More information about the Gcc-bugs
mailing list