[patch, Fortran] Fix PR 120139, missing asterisk on prototype with -fc-prototypes

Thomas Koenig tkoenig@netcologne.de
Tue May 13 20:30:15 GMT 2025


Hello world,

this fixes the other regression which crept in with gfortran.
Again, regression-tested, plus the local testing script is
attached.

Ok for trunk and gcc-15?

Best regards

	Thomas

Fix explicit arrays with non-constant size for -fc-prototypes.

gcc/fortran/ChangeLog:

	PR fortran/120139
	* dump-parse-tree.cc (get_c_type_name): If no constant
	size of an array exists, output an asterisk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-pr120139.sh
Type: application/x-shellscript
Size: 529 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250513/45c8b031/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr120139-1.diff
Type: text/x-patch
Size: 388 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250513/45c8b031/attachment-0003.bin>


More information about the Fortran mailing list