Commit 00acae2
authored
fixes #233
Pure functions get_activation_by_name and get_optimizer_by_name
construct polymorphic function results. Removing `pure` enables
building with the LLVM flang-new compiler.
Although Fortran 2003 allowed pure functions with allocatable
polymorphic results, subsequent standards disallowed such functions.
Using this Fortran 2003 feature blocks building with the LLVM and NAG
compilers and likely will block building with future versions of
gfortran once GCC issue 78640 has been fixed. (See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78640.)
TODO: A subsequent error still blocks building with NAG, which this
commit does not address.
1 parent 3049393 commit 00acae2
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
| 736 | + | |
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments