Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Status of F2003 OOP features?

Izaak_Beekman
New Contributor II
1,126 Views
Does anyone know the status of F2003 OOP features in the latest ifort release? Or do they know where I can find this info without wading through loooooong release notes?

Specifically I am interested in type bound procedures and parameterized derived types. Under ifort 11.1.046 under 64bit RHEL 5 I get the following errors when trying to declare an object as a parameterized derived type:

[plain]ifort -c modErrors.f90 -warn all -check all -traceback -g -sox
modErrors.f90(43): error #5082: Syntax error, found '::' when expecting one of: , ;
TYPE(error_pair(name_len=length)) :: errs(num_errs)
---------------------------------------^
[/plain]

I have quadrupal checked my code, and it appears that perhaps this hasn't been added yet? If it is supposed to be functional is this a compiler bug?

I appreciate any thoughts, comments, or assistance.

-Z
0 Kudos
1 Solution
Steven_L_Intel1
Employee
1,126 Views

You should not have to wade through the release notes - there is a subsection "Fortran 2003 Feature Summary" listed in the Table of Contents. You can also find this material here.

Type-bound procedures are supported. Parameterized derived types are not.

View solution in original post

0 Kudos
12 Replies
Steven_L_Intel1
Employee
1,127 Views

You should not have to wade through the release notes - there is a subsection "Fortran 2003 Feature Summary" listed in the Table of Contents. You can also find this material here.

Type-bound procedures are supported. Parameterized derived types are not.
0 Kudos
Izaak_Beekman
New Contributor II
1,126 Views
Many thanks, Steve. Trial and error is certainly not the best way to ascertain this information. I'm starting to go a bit nuts!

-Z
0 Kudos
Izaak_Beekman
New Contributor II
1,126 Views
Also, I didn't see any mention of submodules (which, I know, never made it into the 2003 standard, but I think were included in some sort of provisional manner and slated to be included in F2008) in the link you posted above. Any hope to see this functionality any time soon?

-Z
0 Kudos
Steven_L_Intel1
Employee
1,126 Views
Submodules are part of F2008. They're in our development plan for the next major release (not what I would call "soon"), but they're not done yet so I won't make any promises.
0 Kudos
Izaak_Beekman
New Contributor II
1,126 Views

Sorry if these questions have been answered elsewhere on this forum, but

a) When do you think the next release supporting parameterized derived types will be?

b) When will the next major release be?

c) Are submodules still slated for inclusion in the next major release?

Thanks in advance,

-Z

0 Kudos
Steven_L_Intel1
Employee
1,126 Views

a) Not yet scheduled

b) Late 2010

c) At this point it seems unlikely

0 Kudos
butette
Beginner
1,126 Views

Steve,

Does that apply to generic interface as well ? If so I have to deicde how to work around that in my implementation. My basline compiler for F2003 feature today is the IBM xlf2003 compiler and it seems like it can handle many things that ifort can't.

Thanks.

0 Kudos
Steven_L_Intel1
Employee
1,126 Views

Generic type-bound-procedures are still on track for the late 2010 release. Submodules is the only feature we were considering that has been tentatively dropped for this next release, due to resource constraints. We still want to do it as soon as we can.

IBM xlf90 is the second-closest compiler to full F2003 there is (Cray is all the way there), but of course it doesn't run on IA platforms. We'll get there eventually. Even NAG, which historically has been first out with a new standard, is a long way from done. No other commercial implementation is close.

0 Kudos
Izaak_Beekman
New Contributor II
1,126 Views

a) Not yet scheduled

Does this mean this feature is a year plus out? That is very unfortunate. Parameterized derived types combined with allocatable scalars will be soooo nice...

0 Kudos
Steven_L_Intel1
Employee
1,126 Views
Yes, I would say that parameterized derived types are more than a year out.
0 Kudos
Anar_Yusifov
Beginner
1,126 Views
Yes, I would say that parameterized derived types are more than a year out.

Are there any news aboutparameterized derived types? When do you plan to ifort will support them?

Thanks.

0 Kudos
Steven_L_Intel1
Employee
1,126 Views
I don't have anything more to say than I did earlier.
0 Kudos
Reply