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

Intel 19.1 regression #20

Closed
nncarlson opened this issue Jan 26, 2020 · 1 comment
Closed

Intel 19.1 regression #20

nncarlson opened this issue Jan 26, 2020 · 1 comment

Comments

@nncarlson
Copy link
Owner

Intel 19.1 is failing the map_any and parameter_list tests.

@nncarlson
Copy link
Owner Author

I've tracked this down to the map_any_iterator%next subroutine. The compiler is generating bad code for the pointer assignment in this line

    if(associated(this%item)) this%item => this%item%next

I've reported a test case to Intel. Intel 19.0 and earlier handle this correctly.

The key factor seems to be that %item is polymorphic. I suspect that it was inadvertent and not a deliberate choice -- I can't see any reason for it now. If the component is simply declared to be a type(list_item) pointer the error goes away. I think I'm going to go ahead and make that change.

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