Public bug reported:

The gfortran-4.3 package in Ubuntu 8.10 is *BROKEN*

Fundamental things like string handling does not work. It is very
important that this package is upgraded to the latest stable 4.3
release. This bug makes Ubuntu a less attractive platform for scientific
computing; an important and growing field in the Linux world.

--

test.f90:

program test_prg

   implicit none

   character(len=32) str1
   character(len=10) str2

   str1 = 'test'

   print *, 'trim(str1) = ', trim(str1)
   print *, 'str1       = ', str1

   str2 = 'test'

   print *, 'trim(str2) = ', trim(str2)
   print *, 'str2       = ', str2

end program test_prg

--


Transcript from console:

na56:tmp>/opt/irun/bin/gfortran -v
Using built-in specs.
Target: i586-pc-linux-gnu
Configured with: /home/fx/gfortran_nightbuild/trunk/configure 
--prefix=/home/fx/gfortran_nightbuild/irun-20081021 
--enable-languages=c,fortran --build=i586-pc-linux-gnu 
--enable-checking=release --with-gmp=/home/fx/gfortran_nightbuild/software
Thread model: posix
gcc version 4.4.0 20081021 (experimental) [trunk revision 141258] (GCC) 
na56:tmp>/opt/irun/bin/gfortran -o test test.f90
na56:tmp>./test
 trim(str1) = test
 str1       = test                            
 trim(str2) = test
 str2       = test      
na56:tmp>gfortran -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' 
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release 
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) 
na56:tmp>gfortran -o test test.f90
na56:tmp>./test
 trim(str1) = 
 str1       =                         
 trim(str2) = test
 str2       = test      
na56:tmp>

** Affects: gcc-4.3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
string handling broken
https://bugs.launchpad.net/bugs/306912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to