[Bug fortran/32472] ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter

2007-06-30 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2007-06-30 13:08 ---
Subject: Bug 32472

Author: pault
Date: Sat Jun 30 13:08:19 2007
New Revision: 126147

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=126147
Log:
2007-06-30  Paul Thomas  [EMAIL PROTECTED]

PR fortran/32472
* simplify.c (gfc_simplify_repeat): Add handling of character
literal for first argument.

2007-06-30  Paul Thomas  [EMAIL PROTECTED]

PR fortran/30284
* gfortran.dg/repeat_f90: New test.

Added:
trunk/gcc/testsuite/gfortran.dg/repeat_5.f90
Modified:
trunk/gcc/fortran/simplify.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32472



[Bug fortran/32472] ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter

2007-06-30 Thread pault at gcc dot gnu dot org


--- Comment #6 from pault at gcc dot gnu dot org  2007-06-30 13:09 ---
Subject: Bug 32472

Author: pault
Date: Sat Jun 30 13:09:14 2007
New Revision: 126148

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=126148
Log:
2007-06-30  Paul Thomas  [EMAIL PROTECTED]

PR fortran/32472
* simplify.c (gfc_simplify_repeat): Add handling of character
literal for first argument.

2007-06-30  Paul Thomas  [EMAIL PROTECTED]

PR fortran/30284
* gfortran.dg/repeat_f90: New test.

Modified:
trunk/gcc/fortran/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32472



[Bug fortran/32472] ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter

2007-06-30 Thread pault at gcc dot gnu dot org


--- Comment #7 from pault at gcc dot gnu dot org  2007-06-30 15:11 ---
This, I seem to think is well, fixed on trunk.

Thanks for the report, Tibias.

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32472



[Bug fortran/32472] ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter

2007-06-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2007-06-26 09:48 ---
(In reply to comment #3)
 I have a fix for this that needs a bit of cleaning up - will submit tonight.
 For some reason, gfc_simplify_repeat denies even the possibility of character
 literal arguments - it's not even a question of a failing attempt to deal with
 them:-)

OK - the patch did not regtest but the principle is established:  I know how to
fix it and need to get the details of the interface to existing code right.

Paul


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32472



[Bug fortran/32472] ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter

2007-06-25 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2007-06-25 14:51 ---
I have a fix for this that needs a bit of cleaning up - will submit tonight.

For some reason, gfc_simplify_repeat denies even the possibility of character
literal arguments - it's not even a question of a failing attempt to deal with
them:-)

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2007-06-25 14:51:48
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32472



[Bug fortran/32472] ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter

2007-06-23 Thread dfranke at gcc dot gnu dot org


--- Comment #1 from dfranke at gcc dot gnu dot org  2007-06-23 13:47 ---
I think this is parsed as a statement function. 
For something similar, I once got messages as: expected character but got
procedure. 

Couldn't find time to investigate further, though :(


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32472



[Bug fortran/32472] ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter

2007-06-23 Thread pault at gcc dot gnu dot org


--- Comment #2 from pault at gcc dot gnu dot org  2007-06-23 21:13 ---
(In reply to comment #1)

It's wierd - this works fine:

Character(1), parameter :: query = ?
CHARACTER(len=1025) :: string2 = repeat(query,1025)
print *, string2
end

Paul


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32472