Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

[bug/f2003 feature?] import and derived type using pointer procedure to itself

Kacper_Kowalik
Beginner
458 Views
Hi,
following code:
[fortran]module ala implicit none type :: foo procedure(bar), pointer :: baz end type interface subroutine bar(this) import foo implicit none class(foo), intent(inout) :: this end subroutine bar end interface end module ala[/fortran] gives me
[bash]import_intel.f90(5): error #6404: This name does not have a type, and must have an explicit type. [BAZ] procedure(bar), pointer :: baz ---------------------------------^ compilation aborted for import_intel.f90 (code 1)[/bash] with
[bash]Intel Fortran Intel 64 Compiler XE for applications running on Intel 64, Version 12.1.5.339 Build 20120612[/bash] Whereas it works fine with gcc-4.6 -std=f2003 and pgi-11.2.
AFAIK following construct using import is allowed by Fortran Standard, but maybe I'm wrong :)
Best regards,
Kacper Kowalik
0 Kudos
1 Reply
Steven_L_Intel1
Employee
458 Views
This is a bug that is fixed for our September release.
0 Kudos
Reply