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

Allocatables in modules aren't supported #3993

Closed
assem2002 opened this issue May 12, 2024 · 3 comments · Fixed by #4111
Closed

Allocatables in modules aren't supported #3993

assem2002 opened this issue May 12, 2024 · 3 comments · Fixed by #4111
Labels
SNAP Issue or pull request related to compiling lanl/snap

Comments

@assem2002
Copy link
Contributor

assem2002 commented May 12, 2024

module a
	implicit none
	integer ,allocatable , dimension(:) :: f 
end module a


program mm
	use a
	implicit none
	allocate(f(4))
	f = [1,2,3,4]
	print *,f
end program mm
code generation error: Variable type not supported 15
 --> first.f90:3:41
  |
3 |  integer ,allocatable , dimension(:) :: f 
  |                                         ^ 

Is really allocatables supported in 'program' but not supported in module yet? or is it a bug?

@assem2002
Copy link
Contributor Author

related to #3977 and #3968 .

@assem2002
Copy link
Contributor Author

This issue needs to be labled 'SNAP'. may you label it @Pranavchiku .

I think if we handled this issue we can proceed with compiling dealloc.f90

The unhandled expception in #3977 is due to serialization issue with '.mod' as Pranav mentioned in #3968 .

@assem2002 assem2002 changed the title Allocatables in modules aren't defined Allocatables in modules aren't Supported May 12, 2024
@assem2002 assem2002 changed the title Allocatables in modules aren't Supported Allocatables in modules aren't supported May 12, 2024
@Pranavchiku Pranavchiku added the SNAP Issue or pull request related to compiling lanl/snap label May 12, 2024
@certik
Copy link
Contributor

certik commented May 12, 2024

@assem2002 beautiful, thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SNAP Issue or pull request related to compiling lanl/snap
Projects
None yet
3 participants