aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2010-12-05 11:09:25 +0100
committerDaniel Kraft <domob@gcc.gnu.org>2010-12-05 11:09:25 +0100
commit169eba7996027d6f74afef6659dd7df6f3b54712 (patch)
tree27c914da668105f13d7a91b2d59a9fadd2280c0e /gcc
parentec692d5f108e2f485e1aa8c6d7760af9fb32ab6e (diff)
downloadgcc-169eba7996027d6f74afef6659dd7df6f3b54712.zip
gcc-169eba7996027d6f74afef6659dd7df6f3b54712.tar.gz
gcc-169eba7996027d6f74afef6659dd7df6f3b54712.tar.bz2
re PR fortran/46794 (ICE on valid code involving power of small integer kinds)
2010-12-05 Daniel Kraft <d@domob.eu> PR fortran/46794 * gfortran.dg/power2.f90: Initialize variables. From-SVN: r167471
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/power2.f903
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ab9f955..875a86d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-05 Daniel Kraft <d@domob.eu>
+
+ PR fortran/46794
+ * gfortran.dg/power2.f90: Initialize variables.
+
2010-12-04 Jan Hubicka <jh@suse.cz>
* snprintf-chk.c (ptr): Declare volatile.
diff --git a/gcc/testsuite/gfortran.dg/power2.f90 b/gcc/testsuite/gfortran.dg/power2.f90
index 01954cb..5e2cf04 100644
--- a/gcc/testsuite/gfortran.dg/power2.f90
+++ b/gcc/testsuite/gfortran.dg/power2.f90
@@ -13,6 +13,9 @@ PROGRAM main
INTEGER(KIND=1) :: k1
INTEGER(KIND=2) :: k2
+ k1 = 1_1
+ k2 = 1_2
+
k1 = 1_1 + 1_1**k1
k2 = 1_2 + 1_2**k2