[Patch, Fortran] Reject invalid association target (PR93363)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Patch, Fortran] Reject invalid association target (PR93363)

Tobias Burnus-3
Using "associate (y => procedure_name)" and
"associate (y => derived_type_name)" failed with an ICE
when converting to a tree. This patch rejects those now.

(This is a GCC 10 regression; before there was no ICE but
the code was silently accepted.)

OK?

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter

assoc-fix.diff (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Patch, Fortran] Reject invalid association target (PR93363)

gcc - fortran mailing list
Hi Tobias,

Thanks for the patch. I had flagged it up as one that I should be dealing with.

OK indeed!

Cheers

Paul

On Fri, 27 Mar 2020 at 08:05, Tobias Burnus <[hidden email]> wrote:

>
> Using "associate (y => procedure_name)" and
> "associate (y => derived_type_name)" failed with an ICE
> when converting to a tree. This patch rejects those now.
>
> (This is a GCC 10 regression; before there was no ICE but
> the code was silently accepted.)
>
> OK?
>
> Tobias
>
> -----------------
> Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
> Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter



--
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein