https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87103
--- Comment #2 from Andrew Benson <abensonca at gmail dot com> --- Thanks Janus. That does solve the problem, and regtests cleanly, with this patch: Index: gcc/fortran/gfortran.h =================================================================== --- gcc/fortran/gfortran.h (revision 264085) +++ gcc/fortran/gfortran.h (working copy) @@ -54,7 +54,9 @@ not after. /* Major control parameters. */ -#define GFC_MAX_SYMBOL_LEN 63 /* Must be at least 63 for F2003. */ +/* Must be at least 63 for F2003, +1 for null terminator, + +12 for prefix "__tmp_class_". */ +#define GFC_MAX_SYMBOL_LEN 76 #define GFC_LETTERS 26 /* Number of letters in the alphabet. */ #define MAX_SUBRECORD_LENGTH 2147483639 /* 2**31-9 */