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,fortran] Accept noninteger exponents in initialization expressions for Fortran 2003 (PR29962)


This is a rather trivial change. Anyone wanting to approve it?
It is identically to the one submitted one week ago, except that I
decided now to add also a test case.
(Before it was also rejected in the GNU mode.)

Regtested on  x86_64-unknown-linux-gnu. Ok for the trunk (only)?

Tobias


Tobias Burnus wrote:
> :ADDPATCH fortran:
>
> Fortran 2003 allows much more in initialization expressions than Fortran
> 95 (cf. PR29962), some of which are support in STD_GNU.
>
> This patch allows noninteger exponents in initialization expressions.
> The relevant parts of the standard are:
>
> "7.1.7 Initialization expression" in Fortran 2003 and in the Section
> "7.1.6.1 Constant expression" in Fortran 95.
>
> F95: "An initialization expression is a constant expression in which the
> exponentiation operation is
> permitted only with an integer power"
>
> In F2003 this clause is gone.
>
> Regression tested on x86_64-unknown-linux-gnu.
>
> Tobias
>
> 2006-11-27  Tobias Burnus  <burnus@net-b.de>
>
>     PR fortran/29962
>     * expr.c (check_intrinsic_op): Allow noninteger exponents for F2003.
>   
testsuite/
2006-12-04  Tobias Burnus  <burnus@net-b.de>

	PR fortran/29962
	* initialization_4.f90: Test noninteger exponents (-std=f95).
	* initialization_5.f90: New test for noninteger exponents with -std=f2003.


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