Problem compiling module containing a type that contains a procedure

4 views
Skip to first unread message

Andrew Porter

unread,
Jan 3, 2018, 9:11:11 AM1/3/18
to omni-compiler
Hello,

I wasn't sure whether here or github was the right place for this - if you'd like me to open an issue then just say.

I'm trying to compile some code (actually, I only need to run the frontend on it) that has a type which itself depends on another type that contains a procedure.
If I remove that procedure then all is fine. If I include all the type definitions in the same file then all is fine.
The code compiles OK with gfortran.

I'm using the HEAD of master.

Running make with the files in the attached tarball gives:

xmpf90  -c grid_mod.f90
xmpf90  -c field_mod.f90
xmpf90  -c compute_cu_mod.f90
my_install_path/libexec/omni_common_lib.sh: line 41: 38460 Aborted                 ${@+"$@"}

grid_type is defined in grid_mod and contains a procedure. It is that procedure that seems to cause the problem.

Many thanks for any help...

Andy.
omni_eg.tgz

Hitoshi Murai

unread,
Jan 11, 2018, 5:03:56 AM1/11/18
to Andrew Porter, omni-compiler
Hi Andy,

Thank you for your report.

It looks to me that this is a bug. I'll open an issue and fix it ASAP.

Best regards,
Hitoshi Murai
> --
> You received this message because you are subscribed to the Google
> Groups "omni-compiler" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to omni-compile...@googlegroups.com
> <mailto:omni-compile...@googlegroups.com>.
> To post to this group, send email to omni-c...@googlegroups.com
> <mailto:omni-c...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/omni-compiler/a72cad18-e7d2-49be-9508-371c8c935739%40googlegroups.com
> <https://groups.google.com/d/msgid/omni-compiler/a72cad18-e7d2-49be-9508-371c8c935739%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
村井 <h-m...@riken.jp>

Andrew Porter

unread,
Jan 12, 2018, 6:13:14 AM1/12/18
to omni-compiler
Thanks Hitoshi.


Reply all
Reply to author
Forward
0 new messages