[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-12-02 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 Jerry DeLisle changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-12-02 Thread paul.richard.thomas at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #13 from paul.richard.thomas at gmail dot com 2010-12-02 13:33:38 UTC --- Semms to me that Jerry should do the honours :-) Paul On Thu, Dec 2, 2010 at 1:45 PM, burnus at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-12-02 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #12 from Tobias Burnus 2010-12-02 12:44:57 UTC --- I think we can close this PR - can't we?

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #11 from Jerry DeLisle 2010-11-28 07:43:02 UTC --- Author: jvdelisle Date: Sun Nov 28 07:42:56 2010 New Revision: 167218 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167218 Log: 2010-11-27 Tobias Burnus Jerry DeLi

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #10 from Jerry DeLisle 2010-11-27 23:59:44 UTC --- Patch with test case submitted to gfortran list. http://gcc.gnu.org/ml/fortran/2010-11/msg00381.html

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #9 from Jerry DeLisle 2010-11-27 23:06:17 UTC --- Looking at what these functions do, clearly we had a scope problem and do not want a new scope. For this case I am sure we do not want start_block. void gfc_start_block (stmtblock_t

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #8 from Jerry DeLisle 2010-11-27 22:56:56 UTC --- This fixes it: Index: trans-decl.c === --- trans-decl.c(revision 167208) +++ trans-decl.c(working copy) @@ -295

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P4 CC|

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #7 from Tobias Burnus 2010-11-27 14:10:54 UTC --- The problem seems to be in trans-array.c's gfc_trans_auto_array_allocation where gfortran had before: - gfc_add_expr_to_block (&block, fnbody); - return gfc_finish_block (&block);

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #6 from Tobias Burnus 2010-11-27 10:00:38 UTC --- I think one needs to define the type as character(kind=1) string[1:]; (unknown upper bound, as for allocatable arrays) and work with the length as a separate variable - as we do with

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #5 from Tobias Burnus 2010-11-27 09:54:36 UTC --- (In reply to comment #4) > While it makes a bit more sense, I admittedly still fail to understand why > int .string > { > .string = 4 > } > // use .string > fails 'cause

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-27 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #4 from Tobias Burnus 2010-11-27 09:45:41 UTC --- > If one looks at the original dump, the only difference is nesting: > > the working version has: > > { > // setup .string and other initialization > } > [...] > } > > >

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-26 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot |

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-26 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 --- Comment #2 from Tobias Burnus 2010-11-27 00:35:04 UTC --- (In reply to comment #1) > testing: r162217 (589550ff51f6645a92a0538f31953b94e40585b4) > testing: r162219 (c5faa79924f2b5c58fd21b6bd2416836985dfc25) Forgot to change that: The fir

[Bug fortran/46678] [4.6 Regression] Wrong code with strings

2010-11-26 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46678 Tobias Burnus changed: What|Removed |Added CC||domob at gcc dot gnu.org,