[Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31194
[Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
--- Comment #4 from pault at gcc dot gnu dot org 2007-05-16 09:13 --- Fixed on trunk Paul and Brooks -- pault at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31194
[Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
--- Comment #3 from pault at gcc dot gnu dot org 2007-05-16 06:41 --- Subject: Bug 31194 Author: pault Date: Wed May 16 05:40:51 2007 New Revision: 124759 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=124759 Log: 2007-05-16 Brooks Moses [EMAIL PROTECTED] PR fortran/18769 PR fortran/30881 PR fortran/31194 PR fortran/31216 PR fortran/31427 * target-memory.c: New file. * target-memory.h: New file. * simplify.c: Add #include target-memory.h. (gfc_simplify_transfer): Implement constant- folding for TRANSFER intrinsic. * Make-lang.in: Add dependencies on new target-memory.* files. 2007-05-16 Paul Thomas [EMAIL PROTECTED] PR fortran/18769 PR fortran/30881 PR fortran/31194 PR fortran/31216 PR fortran/31427 * transfer_simplify_1.f90: New test. * transfer_simplify_2.f90: New test. Added: trunk/gcc/fortran/target-memory.c trunk/gcc/fortran/target-memory.h trunk/gcc/testsuite/gfortran.dg/transfer_simplify_1.f90 trunk/gcc/testsuite/gfortran.dg/transfer_simplify_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/Make-lang.in trunk/gcc/fortran/simplify.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31194
[Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
-- brooks at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |brooks at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2007-03-16 20:24:20 |2007-04-06 23:00:09 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31194
[Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
--- Comment #1 from burnus at gcc dot gnu dot org 2007-03-16 09:34 --- I'm not anymore sure whether it is valid or not. Related: NaN = transfer(ishft(int(z'FFF8',8),32),0.0_8) this prints duly NaN with NAG f95, sunf95, ifort, g95 and gfortran. The example of comment 0 prints NaN with g95 and sunf95, ifort prints 0.0 (???) and NAG f95 rejects it with: Error: foo.f90, line 1: INT of non-integer not permitted in an initialisation expression which somehow looks strange. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31194
[Bug fortran/31194] NaN transfer - internal compiler error: in gfc_conv_constant
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-03-16 20:24 --- Yet another transfer bug :( Reduced testcase: real :: NaN = transfer(0,0) print *, NaN end Backtrace of the ICE: Breakpoint 1, gfc_conv_constant (se=0xbf8f8fbc, expr=0x888dad8) at ../../../trunk/gcc/fortran/trans-const.c:348 348 gcc_assert (expr-expr_type == EXPR_CONSTANT); (gdb) where #0 gfc_conv_constant (se=0xbf8f8fbc, expr=0x888dad8) at ../../../trunk/gcc/fortran/trans-const.c:348 #1 0x080cf2f9 in gfc_conv_initializer (expr=0x888dad8, ts=0x888df00, type=0xb7c9fa90, array=0 '\0', pointer=0 '\0') at ../../../trunk/gcc/fortran/trans-expr.c:2723 #2 0x080c672a in gfc_get_symbol_decl (sym=0x888def0) at ../../../trunk/gcc/fortran/trans-decl.c:1018 #3 0x080c6c78 in generate_local_decl (sym=0x888def0) at ../../../trunk/gcc/fortran/trans-decl.c:2985 -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail||4.1.3 4.2.0 4.3.0 Last reconfirmed|-00-00 00:00:00 |2007-03-16 20:24:20 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31194