public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47846] New: Deferred-string length: Length is wrong
@ 2011-02-22  9:42 burnus at gcc dot gnu.org
  2011-02-22 10:26 ` [Bug fortran/47846] " paul.richard.thomas at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-02-22  9:42 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Deferred-string length: Length is wrong
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: pault@gcc.gnu.org


The test case allocate_deferred_char_scalar_1.f03 fails if one applies the
following patch. It abort in line 178:
    if(len(a) /= 50) call abort()

On my system "len(a)" is 0


--- a/gcc/testsuite/gfortran.dg/allocate_deferred_char_scalar_1.f03
+++ b/gcc/testsuite/gfortran.dg/allocate_deferred_char_scalar_1.f03
@@ -1,4 +1,4 @@
-! { dg-do run}
+! { dg-do run }
 !
 ! Automatic reallocate on assignment, deferred length parameter for char
 !


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

* [Bug fortran/47846] Deferred-string length: Length is wrong
  2011-02-22  9:42 [Bug fortran/47846] New: Deferred-string length: Length is wrong burnus at gcc dot gnu.org
@ 2011-02-22 10:26 ` paul.richard.thomas at gmail dot com
  2011-02-23 17:48 ` [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03) ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paul.richard.thomas at gmail dot com @ 2011-02-22 10:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from paul.richard.thomas at gmail dot com <paul.richard.thomas at gmail dot com> 2011-02-22 10:09:57 UTC ---
Jerry,

You are not the only one :-)

Tobias, I'll take a look-see tonight.

Cheers

Paul

On Tue, Feb 22, 2011 at 10:31 AM, burnus at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47846
>
>           Summary: Deferred-string length: Length is wrong
>           Product: gcc
>           Version: 4.6.0
>            Status: UNCONFIRMED
>          Keywords: wrong-code
>          Severity: normal
>          Priority: P3
>         Component: fortran
>        AssignedTo: unassigned@gcc.gnu.org
>        ReportedBy: burnus@gcc.gnu.org
>                CC: pault@gcc.gnu.org
>
>
> The test case allocate_deferred_char_scalar_1.f03 fails if one applies the
> following patch. It abort in line 178:
>    if(len(a) /= 50) call abort()
>
> On my system "len(a)" is 0
>
>
> --- a/gcc/testsuite/gfortran.dg/allocate_deferred_char_scalar_1.f03
> +++ b/gcc/testsuite/gfortran.dg/allocate_deferred_char_scalar_1.f03
> @@ -1,4 +1,4 @@
> -! { dg-do run}
> +! { dg-do run }
>  !
>  ! Automatic reallocate on assignment, deferred length parameter for char
>  !
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>


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

* [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03)
  2011-02-22  9:42 [Bug fortran/47846] New: Deferred-string length: Length is wrong burnus at gcc dot gnu.org
  2011-02-22 10:26 ` [Bug fortran/47846] " paul.richard.thomas at gmail dot com
@ 2011-02-23 17:48 ` ubizjak at gmail dot com
  2011-02-23 19:33 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2011-02-23 17:48 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.02.23 16:56:47
     Ever Confirmed|0                           |1

--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2011-02-23 16:56:47 UTC ---
The patch from comment 0 was applied at r170438, so the test now fails at
runtime.

Confirmed.

[1] http://gcc.gnu.org/ml/gcc-cvs/2011-02/msg00984.html


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

* [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03)
  2011-02-22  9:42 [Bug fortran/47846] New: Deferred-string length: Length is wrong burnus at gcc dot gnu.org
  2011-02-22 10:26 ` [Bug fortran/47846] " paul.richard.thomas at gmail dot com
  2011-02-23 17:48 ` [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03) ubizjak at gmail dot com
@ 2011-02-23 19:33 ` dominiq at lps dot ens.fr
  2011-02-23 20:11 ` burnus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-02-23 19:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-02-23 18:51:53 UTC ---
See pr47863.


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

* [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03)
  2011-02-22  9:42 [Bug fortran/47846] New: Deferred-string length: Length is wrong burnus at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-02-23 19:33 ` dominiq at lps dot ens.fr
@ 2011-02-23 20:11 ` burnus at gcc dot gnu.org
  2011-02-27 14:13 ` burnus at gcc dot gnu.org
  2011-02-27 14:37 ` burnus at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-02-23 20:11 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-23 19:45:40 UTC ---
*** Bug 47863 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03)
  2011-02-22  9:42 [Bug fortran/47846] New: Deferred-string length: Length is wrong burnus at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-02-23 20:11 ` burnus at gcc dot gnu.org
@ 2011-02-27 14:13 ` burnus at gcc dot gnu.org
  2011-02-27 14:37 ` burnus at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-02-27 14:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-27 14:12:35 UTC ---
Author: burnus
Date: Sun Feb 27 14:12:31 2011
New Revision: 170539

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170539
Log:
2011-02-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47846
        * trans-stmt.c (gfc_trans_allocate): Fix allocation with
        type-spec of deferred-length strings.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-stmt.c


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

* [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03)
  2011-02-22  9:42 [Bug fortran/47846] New: Deferred-string length: Length is wrong burnus at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-02-27 14:13 ` burnus at gcc dot gnu.org
@ 2011-02-27 14:37 ` burnus at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-02-27 14:37 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

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

--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-27 14:13:39 UTC ---
FIXED on the 4.6 trunk.


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

end of thread, other threads:[~2011-02-27 14:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22  9:42 [Bug fortran/47846] New: Deferred-string length: Length is wrong burnus at gcc dot gnu.org
2011-02-22 10:26 ` [Bug fortran/47846] " paul.richard.thomas at gmail dot com
2011-02-23 17:48 ` [Bug fortran/47846] Deferred-string length: Length is wrong (gfortran.dg/allocate_deferred_char_scalar_1.f03) ubizjak at gmail dot com
2011-02-23 19:33 ` dominiq at lps dot ens.fr
2011-02-23 20:11 ` burnus at gcc dot gnu.org
2011-02-27 14:13 ` burnus at gcc dot gnu.org
2011-02-27 14:37 ` burnus at gcc dot gnu.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).