https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49802
--- Comment #19 from Harald Anlauf <anlauf at gcc dot gnu.org> --- (In reply to Jerry DeLisle from comment #18) > (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. My copy of F2018 has: C862 An entity with the TARGET attribute shall not have the POINTER attribute. This is not applicable. And to be clear: ! C863 An entity with the VALUE attribute shall be a dummy data object. It ! shall not be an assumed-size array, a coarray, or a variable with a ! coarray ultimate component. So what is wrong with my example?
