public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38822]  New: ICE in in gfc_target_encode_expr
@ 2009-01-13 10:53 burnus at gcc dot gnu dot org
  2009-01-13 16:33 ` [Bug fortran/38822] Compile-time simplification of x**(real) / " burnus at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-01-13 10:53 UTC (permalink / raw)
  To: gcc-bugs

Found at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/0f1d7da66fa015c2

(There is another issue with constant folding, which Steve wants to fix.)

The following program compiles with NAG f95/g95/ifort and prints "T F". With
gfortran 4.3 and 4.4 it crashes (with 4.1/4.2 it does not compile):

f951: internal compiler error: in gfc_target_encode_expr, at
fortran/target-memory.c:249

  gcc_assert (source->expr_type == EXPR_CONSTANT
              || source->expr_type == EXPR_STRUCTURE
              || source->expr_type == EXPR_SUBSTRING);

Here, source->expr_type == EXPR_OP.

Reduced testcase:
   integer z(0*transfer(2.D0**2.,1)+2)
   end

Long testcase, see
http://groups.google.com/group/comp.lang.fortran/msg/c71f697c3e21e3f2


-- 
           Summary: ICE in in gfc_target_encode_expr
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-05-19 14:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13 10:53 [Bug fortran/38822] New: ICE in in gfc_target_encode_expr burnus at gcc dot gnu dot org
2009-01-13 16:33 ` [Bug fortran/38822] Compile-time simplification of x**(real) / " burnus at gcc dot gnu dot org
2009-01-14 15:30 ` burnus at gcc dot gnu dot org
2009-01-16  0:55 ` kargl at gcc dot gnu dot org
2009-01-16  2:47 ` kargl at gcc dot gnu dot org
2009-01-16  2:58 ` jvdelisle at gcc dot gnu dot org
2009-01-16  5:26 ` kargl at gcc dot gnu dot org
2009-01-20 19:22 ` kargl at gcc dot gnu dot org
2009-01-20 19:41 ` kargl at gcc dot gnu dot org
2009-03-29 20:41 ` kargl at gcc dot gnu dot org
2009-03-30  0:54 ` [Bug fortran/38822] Compile-time simplification of x**(real) kargl at gcc dot gnu dot org
2009-04-04  9:41 ` dominiq at lps dot ens dot fr
2009-04-04 15:10 ` kargl at gcc dot gnu dot org
2009-04-04 20:44 ` dominiq at lps dot ens dot fr
2009-04-04 21:42 ` sgk at troutmask dot apl dot washington dot edu
2009-04-05 19:43 ` dominiq at lps dot ens dot fr
2010-01-15 18:31 ` kargl at gcc dot gnu dot org
2010-05-19 14:44 ` dfranke at gcc dot gnu dot 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).