https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92208
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2019-10-28 CC| |burnus at gcc dot gnu.org Summary|internal compile error, |[9/10 Regression] internal |character array of dynamic |compile error, character |length returned from |array of dynamic length |function and passed to |returned from function and |subroutine |passed to subroutine Ever confirmed|0 |1 --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- Confirmed with GCC 9 + trunk/10 (Works with GCC 7, GCC 8 I have not tested it with.) Seems to be a scoping issue of the hidden function-result variable: The middle end complains that it sees the local variable declaration of the contained function 'createVarnames' in the scope of the parent program 'stringtest'.