[PATCH, Fortran] PR78277: ICE in is_anonymous_component, at fortran/interface.c:450

Jerry DeLisle jvdelisle@charter.net
Thu Nov 10 21:27:00 GMT 2016


On 11/10/2016 11:06 AM, Fritz Reese wrote:
> All,
>
> The attached fixes an ICE-on-invalid-code, specifically due to invalid
> anonymous structure declarations, as seen in the attached test case.
> This also improves error handling in such cases- the anonymous
> structure body will continue to be parsed even if the variable-decl
> after the opening variable-type-decl is invalid. (Something similar
> could be done to improve regular structure declarations.) See the
> in-code comments and comments on the on the PR for an additional
> description
>
> Along with the first patch, I've attached another patch
> (struct_whitespace) containing whitespace-only changes to some
> dec-structure-related code; the poor formatting was introduced before
> I had my vim settings right.
>
> I intend to commit the two attached patches soon for trunk if nobody
> finds any issues with it. They both regtest on x86_64-redhat-linux of
> course.
>

Looks OK to me.

Thanks,

Jerry



More information about the Fortran mailing list