OSDN Git Service

2007-05-31 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 May 2007 21:11:31 +0000 (21:11 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 May 2007 21:11:31 +0000 (21:11 +0000)
PR fortran/32156
* trans-array.c (gfc_trans_array_constructor): Treat the case
where the ss expression charlen is missing.

2007-05-31  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/32156
* gfortran.dg/char_array_constructor_3.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125240 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_array_constructor_3.f90 [new file with mode: 0644]

index 1f60b34..025471e 100644 (file)
@@ -1,5 +1,11 @@
 2007-05-31  Paul Thomas  <pault@gcc.gnu.org>
 
+       PR fortran/32156
+       * trans-array.c (gfc_trans_array_constructor): Treat the case
+       where the ss expression charlen is missing.
+
+22007-05-31  Paul Thomas  <pault@gcc.gnu.org>
+
        PR fortran/32103
        * module.c (mio_symtree_ref): If an equivalence group member
        is not used, give it a hidden symbol and set the pointer_info.
index 86e6766..f659b4b 100644 (file)
@@ -1,3 +1,8 @@
+007-05-31  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/32156
+       * gfortran.dg/char_array_constructor_3.f90: New test.
+
 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
 
        PR tree-optimization/32160
diff --git a/gcc/testsuite/gfortran.dg/char_array_constructor_3.f90 b/gcc/testsuite/gfortran.dg/char_array_constructor_3.f90
new file mode 100644 (file)
index 0000000..d4c4964
--- /dev/null
@@ -0,0 +1,8 @@
+! { dg-do compile }
+! tests the fix for PR32156, in which the character length of the compound
+! expression got lost.
+!
+! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
+!
+write (*,'(2A3)') 'X'//(/"1","2"/)//'Y'
+END