diff options
author | Steven G. Kargl <kargl@gcc.gnu.org> | 2009-03-29 20:33:07 +0000 |
---|---|---|
committer | Steven G. Kargl <kargl@gcc.gnu.org> | 2009-03-29 20:33:07 +0000 |
commit | 6bb6267173b422eb05776c3212925e57aab008e5 (patch) | |
tree | bab65c93c89839c430906d03c8985425a749601b /gcc/fortran/cpp.c | |
parent | 615ce5fd7ac9df44ecc9820f58383569c880fb73 (diff) | |
download | gcc-6bb6267173b422eb05776c3212925e57aab008e5.zip gcc-6bb6267173b422eb05776c3212925e57aab008e5.tar.gz gcc-6bb6267173b422eb05776c3212925e57aab008e5.tar.bz2 |
re PR fortran/38823 (Diagnose and treat (-2.0)**2.0 properly)
2009-03-29 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/38823
* gfortran.dg/power1.f90: New test.
2009-03-29 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/38823
* gfortran.h: Add ARITH_PROHIBIT to arith enum.
expr.c (gfc_match_init_expr): Add global variable init_flag to
flag matching an initialization expression.
(check_intrinsic_op): Move no longer reachable error message to ...
* arith.c (arith_power): ... here. Remove gfc_ prefix in
gfc_arith_power. Use init_flag. Allow constant folding of x**y
when y is REAL or COMPLEX.
(eval_intrinsic): Remove restriction that y in x**y must be INTEGER
for constant folding.
* gfc_power: Update gfc_arith_power to arith_power
From-SVN: r145261
Diffstat (limited to 'gcc/fortran/cpp.c')
0 files changed, 0 insertions, 0 deletions