[Bug fortran/42651] Functions with result: Wrongly accepts attributes to function name

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Tue Jun 25 09:28:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42651

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-06-25
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
At revision 200371, I get the following errors:

pr42651.f90:17.19:

  allocatable func2  ! { dg-error "FUNCTION attribute conflicts with ALLOCATABL
                   1
Error: Function name 'func2' not allowed at (1)
pr42651.f90:18.14:

  target func2       ! { dg-error "FUNCTION attribute conflicts with TARGET" }
              1
Error: Function name 'func2' not allowed at (1)
pr42651.f90:19.17:

  dimension func2(2) ! { dg-error "FUNCTION attribute conflicts with DIMENSION"
                 1
Error: Function name 'func2' not allowed at (1)



More information about the Gcc-bugs mailing list