This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] Fix ICE on old style init of derived components


Jakub Jelinek wrote:
> As the testcase shows, we ICE on old style initialization of derived type
> components.  ifort also rejects these, I think it doesn't make sense to
> support such initializations of derived type components.

Side remark: Cray ftn also rejects it, while PGI's compiler accepts it.

> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.9?

Looks good to me. Thanks!

Tobias

> 2014-07-02  Jakub Jelinek  <jakub@redhat.com>
> 	    Fritz Reese  <Reese-Fritz@zai.com>
> 
> 	* decl.c (variable_decl): Reject old style initialization
> 	for derived type components.
> 
> 	* gfortran.dg/oldstyle_5.f: New test.


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