This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ICE/Segmentation fault with user types, use only and modules


Martin,

Hi,

I'm getting an ICE and segmentation fault in the following code. I think it may be related to Paul Thomas's observation about pointers to components of derived type arrays. However, it does compile under these circumstances:

* when foo and bar are not in the module
* when the module contains foo or bar but not both
* when the types a and b have no reference to each other
* when ", only, a (or b)" is not used on the use statement

This used to work before about 20 August and works with the SUN compiler I use during my day job.

If this is deemed to be a new "feature" I can submit a PR.

Please add this to PR28788; Martin Reinecke has found another regression.


I am preparing a composite patch to revert to the original derived type association, just so we do not present a screwed up version to the 4.2.0 release.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]