[patch,fortran] PR32644 [4.3 Regression] "CHARACTER*1, c" produces "Unclassifiable statement"

Jerry DeLisle jvdelisle@verizon.net
Sat Jul 7 23:19:00 GMT 2007


:ADDPATCH fortran:

The attached patch fixes this problem.  It is OK to eat the comma, but the comma 
not being there and not matching the iso_c_binding statement is not a match error.

Regression tested on x86-64-Gnu/Linux.

Thanks to Steve Kargl for spotting the location of this bug.

OK for trunk?

Regards,

Jerry

2007-07-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/32644
	* decl.c (match_attr_spec): Don't return MATCH_ERROR if comma found and
	gfc_match_bind_c does not return MATCH_YES.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32644.diff
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070707/664490c7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: char_decl_1.f90
Type: text/x-fortran
Size: 122 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070707/664490c7/attachment-0001.bin>


More information about the Fortran mailing list