https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70752
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-04-21 Blocks| |68241 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Confirmed from 4.9 up to trunk (7.0). Note LEN(S%C(1)) returns 3, so apparently the elements of S%C have their length set, but not S%C itself. > Why does the pointer assignment fail The length of S%C is zero and not 3 as expected by the assignment. The fact that the code executes without bounds check does not mean that the executable is correct. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68241 [Bug 68241] [meta-bug] Deferred-length character