public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/51448] New: Compiler crash when assigning floating point values of different kinds
@ 2011-12-07 10:50 francois.willot at cmm dot ensmp.fr
  2011-12-07 11:10 ` [Bug libfortran/51448] [4.6/4.7 Regression] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: francois.willot at cmm dot ensmp.fr @ 2011-12-07 10:50 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51448
           Summary: Compiler crash when assigning floating point values of
                    different kinds
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: francois.willot@cmm.ensmp.fr


$ gfortran --version
GNU Fortran (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

$ cat 1.f90 
  PROGRAM MAIN
  IMPLICIT NONE
  TYPE mytype
    REAL b(2)
  END TYPE mytype
  TYPE(mytype) a
  DOUBLE PRECISION, ALLOCATABLE :: x(:)
  ALLOCATE(x(2))
  a%b=0.0E0
  x=a%b
  END

$ gfortran -O0 1.f90
1.f90: In function ‘MAIN__’:
1.f90:10:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

The program won't crash when "x=REAL(a%b, KIND(0.0D0))" instead of "x=a%b".

OS: Linux Mint 12, gfortran preinstalled package.


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

end of thread, other threads:[~2011-12-08 21:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07 10:50 [Bug libfortran/51448] New: Compiler crash when assigning floating point values of different kinds francois.willot at cmm dot ensmp.fr
2011-12-07 11:10 ` [Bug libfortran/51448] [4.6/4.7 Regression] " dominiq at lps dot ens.fr
2011-12-07 12:41 ` rguenth at gcc dot gnu.org
2011-12-07 13:51 ` burnus at gcc dot gnu.org
2011-12-07 17:46 ` [Bug fortran/51448] " jakub at gcc dot gnu.org
2011-12-08 18:55 ` burnus at gcc dot gnu.org
2011-12-08 20:58 ` burnus at gcc dot gnu.org
2011-12-08 21:54 ` 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).