public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings
@ 2004-05-06 16:48 Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-06 17:08 ` [Bug fortran/15326] " Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-05-06 16:48 UTC (permalink / raw)
  To: gcc-bugs

[tobi@marktplatz tests]$ cat reduced.f90
  program Decapitation
    implicit none
    integer, parameter :: STRING_LENGTH = 80
    character (len = STRING_LENGTH) :: Text_1, Text_2
    Text_2 = Decap (Text_1)
    stop
  contains
    function Decap (String) result (New_String)
      character (len = *), intent(in) :: String
      character (len = Len(String)) :: New_String
      return
    end function Decap
  end program Decapitation
[tobi@marktplatz tests]$ gfortran reduced.f90
f951: ../../gcc/gcc/fortran/trans-expr.c:1000: gfc_conv_function_call: Assertion
`sym->ts.cl && sym->ts.cl->length && sym->ts.cl->length->expr_type ==
EXPR_CONSTANT' failed.
reduced.f90: In function `MAIN__':
reduced.f90:5: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[tobi@marktplatz tests]$

-- 
           Summary: [gfortran] ICE with assumed length character strings
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Tobias dot Schlueter at physik dot uni-muenchen dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] [gfortran] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-06 17:08 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-06 18:02 ` pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-05-06 17:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-05-06 17:08 -------
This is different from PR15324 in that the function call is affected, not only
the function itself.

-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] [gfortran] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-06 17:08 ` [Bug fortran/15326] " Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-06 18:02 ` pinskia at gcc dot gnu dot org
  2004-05-27  3:08 ` pinskia at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 18:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 18:02 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-06 18:02:30
               date|                            |
   Target Milestone|---                         |tree-ssa


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] [gfortran] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-06 17:08 ` [Bug fortran/15326] " Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-06 18:02 ` pinskia at gcc dot gnu dot org
@ 2004-05-27  3:08 ` pinskia at gcc dot gnu dot org
  2004-06-13  9:25 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-27  3:08 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] [gfortran] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (2 preceding siblings ...)
  2004-05-27  3:08 ` pinskia at gcc dot gnu dot org
@ 2004-06-13  9:25 ` pinskia at gcc dot gnu dot org
  2004-06-27 20:30 ` [Bug fortran/15326] " pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-13  9:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-13 09:25 -------
*** Bug 15958 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Mart dot Rentmeester at nn-
                   |                            |online dot org


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (3 preceding siblings ...)
  2004-06-13  9:25 ` pinskia at gcc dot gnu dot org
@ 2004-06-27 20:30 ` pinskia at gcc dot gnu dot org
  2004-08-09 15:56 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 20:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-27 20:29 -------
*** Bug 16236 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at hep dot tu-
                   |                            |darmstadt dot de


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (4 preceding siblings ...)
  2004-06-27 20:30 ` [Bug fortran/15326] " pinskia at gcc dot gnu dot org
@ 2004-08-09 15:56 ` pinskia at gcc dot gnu dot org
  2004-09-25 15:04 ` tobi at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-09 15:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-09 15:56 -------
*** Bug 16941 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paulthomas2 at wanadoo dot
                   |                            |fr


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (5 preceding siblings ...)
  2004-08-09 15:56 ` pinskia at gcc dot gnu dot org
@ 2004-09-25 15:04 ` tobi at gcc dot gnu dot org
  2004-10-10 21:04 ` tobi at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-09-25 15:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-09-25 15:04 -------
Patch here: http://gcc.gnu.org/ml/fortran/2004-09/msg00253.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (6 preceding siblings ...)
  2004-09-25 15:04 ` tobi at gcc dot gnu dot org
@ 2004-10-10 21:04 ` tobi at gcc dot gnu dot org
  2004-10-10 21:08 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-10 21:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-10 21:04 -------
The patch is wrong because it does only solve part of the problem.

With the testcase from the mailing list posting referred to above, we get code
like this:
  {
    logical4 D.464;
    char[1 .. .d] * pstr.0;

    pstr.0 = (char[1 .. .d] *) _gfortran_internal_malloc (.d);
    d (pstr.0, .d, &t1, 10);
where .d is used uninitialized.

If the function D from the testcase is declared external, with no interface, we
hit the same assertion as without the patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|patch                       |


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (7 preceding siblings ...)
  2004-10-10 21:04 ` tobi at gcc dot gnu dot org
@ 2004-10-10 21:08 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2005-01-06 14:40 ` tobi at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-10-10 21:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-10-10 21:08 -------
Subject: Re:  ICE with assumed length character strings

tobi at gcc dot gnu dot org wrote:
> If the function D from the testcase is declared external, with no interface, we
> hit the same assertion as without the patch.
> 
Ugh, messed up when editing. This is meant to read:
"If the function D from the testcase is external, not contained, we hit the
same assertion as without the patch."



-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (8 preceding siblings ...)
  2004-10-10 21:08 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2005-01-06 14:40 ` tobi at gcc dot gnu dot org
  2005-02-12 21:55 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-01-06 14:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19292
              nThis|                            |


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (9 preceding siblings ...)
  2005-01-06 14:40 ` tobi at gcc dot gnu dot org
@ 2005-02-12 21:55 ` pinskia at gcc dot gnu dot org
  2005-08-31 15:26 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-12 21:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-12 16:56 -------
*** Bug 19927 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sgk at troutmask dot apl dot
                   |                            |washington dot edu


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (10 preceding siblings ...)
  2005-02-12 21:55 ` pinskia at gcc dot gnu dot org
@ 2005-08-31 15:26 ` pinskia at gcc dot gnu dot org
  2005-08-31 20:54 ` rsandifo at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31 15:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 15:15 -------
*** Bug 23654 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kloedej at knmi dot nl


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (11 preceding siblings ...)
  2005-08-31 15:26 ` pinskia at gcc dot gnu dot org
@ 2005-08-31 20:54 ` rsandifo at gcc dot gnu dot org
  2005-09-08 18:46 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-08-31 20:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rsandifo at gcc dot gnu dot org  2005-08-31 20:42 -------
Working on a patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-06-06 00:36:27         |2005-08-31 20:42:48
               date|                            |


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (12 preceding siblings ...)
  2005-08-31 20:54 ` rsandifo at gcc dot gnu dot org
@ 2005-09-08 18:46 ` cvs-commit at gcc dot gnu dot org
  2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-08 18:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-08 18:46 -------
Subject: Bug 15326

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rsandifo@gcc.gnu.org	2005-09-08 18:46:06

Modified files:
	gcc/fortran    : ChangeLog trans-array.c trans-expr.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: char_result_1.f90 char_result_2.f90 
	                           char_result_3.f90 char_result_4.f90 
	                           char_result_5.f90 char_result_6.f90 
	                           char_result_7.f90 char_result_8.f90 

Log message:
	PR fortran/15326
	* trans-array.c (gfc_add_loop_ss_code): Set ss->string_length in
	the GFC_SS_FUNCTION case too.
	* trans-expr.c (gfc_conv_function_val): Allow symbols to be bound
	to function pointers as well as function decls.
	(gfc_interface_sym_mapping, gfc_interface_mapping): New structures.
	(gfc_init_interface_mapping, gfc_free_interface_mapping)
	(gfc_get_interface_mapping_charlen, gfc_get_interface_mapping_array)
	(gfc_set_interface_mapping_bounds, gfc_add_interface_mapping)
	(gfc_finish_interface_mapping, gfc_apply_interface_mapping_to_cons)
	(gfc_apply_interface_mapping_to_ref)
	(gfc_apply_interface_mapping_to_expr)
	(gfc_apply_interface_mapping): New functions.
	(gfc_conv_function_call): Evaluate the arguments before working
	out where the result should go.  Make the null pointer case provide
	the string length in parmse.string_length.  Cope with non-constant
	string lengths, using the above functions to evaluate such lengths.
	Use a temporary typespec; don't assign to sym->cl->backend_decl.
	Don't assign to se->string_length when returning a cached array
	descriptor.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.540&r2=1.541
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.56&r2=1.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.59&r2=1.60
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6030&r2=1.6031
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_3.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_4.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_5.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_6.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_7.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/char_result_8.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (13 preceding siblings ...)
  2005-09-08 18:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
  2005-09-18 19:53 ` [Bug fortran/15326] [4.0 only] " tkoenig at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-08 18:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rsandifo at gcc dot gnu dot org  2005-09-08 18:51 -------
Patch committed to trunk.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] [4.0 only] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (14 preceding siblings ...)
  2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
@ 2005-09-18 19:53 ` tkoenig at gcc dot gnu dot org
  2005-09-18 20:09 ` rsandifo at gcc dot gnu dot org
  2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-09-18 19:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tkoenig at gcc dot gnu dot org  2005-09-18 19:52 -------
Not fixed in 4.0:

$ cat > reduced.f90
  program Decapitation
    implicit none
    integer, parameter :: STRING_LENGTH = 80
    character (len = STRING_LENGTH) :: Text_1, Text_2
    Text_2 = Decap (Text_1)
    stop
  contains
    function Decap (String) result (New_String)
      character (len = *), intent(in) :: String
      character (len = Len(String)) :: New_String
      return
    end function Decap
  end program Decapitation
$ gfortran reduced.f90
reduced.f90: In function 'MAIN__':
reduced.f90:11: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:1108
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0/configure --prefix=/home/ig25
--enable-languages=c,fortran
Thread model: posix
gcc version 4.0.2 20050917 (prerelease)


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu dot
                   |                            |org
             Status|RESOLVED                    |REOPENED
      Known to fail|                            |4.0.2
      Known to work|                            |4.1.0
         Resolution|FIXED                       |
            Summary|ICE with assumed length     |[4.0 only] ICE with assumed
                   |character strings           |length character strings
   Target Milestone|---                         |4.0.3


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] [4.0 only] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (15 preceding siblings ...)
  2005-09-18 19:53 ` [Bug fortran/15326] [4.0 only] " tkoenig at gcc dot gnu dot org
@ 2005-09-18 20:09 ` rsandifo at gcc dot gnu dot org
  2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-18 20:09 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|rsandifo at gcc dot gnu dot |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|REOPENED                    |NEW


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug fortran/15326] [4.0 only] ICE with assumed length character strings
  2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (16 preceding siblings ...)
  2005-09-18 20:09 ` rsandifo at gcc dot gnu dot org
@ 2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 20:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-18 20:27 -------
All of these are fixed in 4.1.0. Since 4.0.2 is the last 4.0 release before a 4.1.0 release will be made, 
4.0.2 and 4.0.1 were special releases for gfrotran.  4.0.3 should be a normal release for GCC and 
gfortran in that regressions are the only changes.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.3                       |4.1.0


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2005-09-18 20:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 16:48 [Bug fortran/15326] New: [gfortran] ICE with assumed length character strings Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-06 17:08 ` [Bug fortran/15326] " Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-06 18:02 ` pinskia at gcc dot gnu dot org
2004-05-27  3:08 ` pinskia at gcc dot gnu dot org
2004-06-13  9:25 ` pinskia at gcc dot gnu dot org
2004-06-27 20:30 ` [Bug fortran/15326] " pinskia at gcc dot gnu dot org
2004-08-09 15:56 ` pinskia at gcc dot gnu dot org
2004-09-25 15:04 ` tobi at gcc dot gnu dot org
2004-10-10 21:04 ` tobi at gcc dot gnu dot org
2004-10-10 21:08 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-01-06 14:40 ` tobi at gcc dot gnu dot org
2005-02-12 21:55 ` pinskia at gcc dot gnu dot org
2005-08-31 15:26 ` pinskia at gcc dot gnu dot org
2005-08-31 20:54 ` rsandifo at gcc dot gnu dot org
2005-09-08 18:46 ` cvs-commit at gcc dot gnu dot org
2005-09-08 18:51 ` rsandifo at gcc dot gnu dot org
2005-09-18 19:53 ` [Bug fortran/15326] [4.0 only] " tkoenig at gcc dot gnu dot org
2005-09-18 20:09 ` rsandifo at gcc dot gnu dot org
2005-09-18 20:27 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).