------- 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

Reply via email to