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

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).