[patch,fortran] Allow noninteger/noncharacter arguments to intrinsic functions for initialization expressions

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Thu Nov 23 23:09:00 GMT 2006


Tobias Burnus <burnus@net-b.de> wrote on Thu, 23 Nov 2006:
> I attached a patch which changes GFC_STD_GNU to GFC_STF_F2003 and filled
> PR 29962 as reminder to check whether there is indeed no difference
> between GFC_STD_GNU and GFC_STF_F2003, to add a check whether the
> intrinsic function is indeed elemental, etc.
>
> Ok for the trunk?

Since this issue only is immediate because of Paul's testcase, which  
can easily be fixed to use Fortran 95 compatible initializations, and  
since we don't want to put a badly defined extension under -std=f2003  
(on IRC we weren't sure if your patch matches F2003), I think the  
right thing to do is to change Paul's testcase, not apply your patch,  
and return to Fortran 2003's rules for initializers independently of  
the current problem.

Cheers,
- Tobi


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Gcc-patches mailing list