Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlimited polymorphic pointers violate standard #3

Open
szaghi opened this issue Apr 12, 2015 · 0 comments
Open

Unlimited polymorphic pointers violate standard #3

szaghi opened this issue Apr 12, 2015 · 0 comments

Comments

@szaghi
Copy link
Owner

szaghi commented Apr 12, 2015

The standard (2003/2008) seems to not allow a typed pointer to point an unlimited polymorphic one, e.g. the following seems to be not standard:

class(*), pointer:: foo
type(mytype), pointer:: bar

bar => foo
call bar%mymethod(...)

Presently, such a pointers association is widely used in OFF, e.g. https://github.com/szaghi/OFF/blob/testing/src/Data_Type_Tree.f90#L210 and https://github.com/szaghi/OFF/blob/testing/src/Data_Type_Global.f90#L130.

Think to a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant