https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80467

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-05-01
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If the compiler is configures with --enable-checking=yes

I get

pr80467.f90:10:0:

     Subroutine TestArgs
 ^
Error: invalid types in conversion to floating point
real(kind=4)
real(kind=4) (*<T8cd>) (void)
compareto = (real(kind=4)) getvalue;
pr80467.f90:10:0: internal compiler error: verify_gimple failed

Per

R1221 function-reference is procedure-designator ( [ actual-arg-spec-list ] )

the code is invalid and it's the user's responsibility to provide the
parentheses.

If I remove the Function GetValue, I get the expected error

         compareTo = GetValue
                            1
Error: Symbol 'getvalue' at (1) has no IMPLICIT type

It would probably more user friendly to get this error with the original test.

Reply via email to