[Bug fortran/49802] [F03] [F08] Wrong code with VALUE, VALUE with arrays/DIMENSION

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 13 01:24:09 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49802

--- Comment #18 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Harald Anlauf from comment #17)
> Created attachment 64715 [details]
> Some tests for character(kind=1),value
> 
> This testcase fully works with Intel and partly with NAG.
> 
> Not tested: character(kind=4),value

Per F2018 C862 (8.5.18 VALUE attribute), only assumed-SIZE arrays
  (and coarrays) are prohibited with VALUE; assumed-shape and
  explicit-shape array dummies are explicitly permitted. 

So we should be legitamately rejecting some of the example. I am building some
test cases and will also check the character(kind=4),value. I may split this
into a few patches.


More information about the Gcc-bugs mailing list