Skip to content

Commit d0e7c73

Browse files
author
Mark Eggleston
committed
Fortran : portability fix for PR52279
Use of _() to enclose string literals assigned to arrays is not portable. Use pointer instead. 2020-07-02 Mark Eggleston <[email protected]> gcc/fortran/ PR fortran/52279 * check.c (gfc_invalid_boz): Change array declaration for hint into a pointer.
1 parent 00f24f5 commit d0e7c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/fortran/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ gfc_invalid_boz (const char *msg, locus *loc)
6767
return false;
6868
}
6969

70-
const char hint[] = " [see %<-fno-allow-invalid-boz%>]";
70+
const char *hint = " [see %<-fno-allow-invalid-boz%>]";
7171
size_t len = strlen (msg) + strlen (hint) + 1;
7272
char *msg2 = (char *) alloca (len);
7373
strcpy (msg2, msg);

0 commit comments

Comments
 (0)