public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29976]  New: [4.2/4.3 regression] ICE on optional arg
@ 2006-11-25 14:09 fxcoudert at gcc dot gnu dot org
  2006-11-25 21:19 ` [Bug fortran/29976] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-11-25 14:09 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

The following code:

SUBROUTINE pw_sumup (alpha_im)
  REAL, INTENT(in), OPTIONAL :: alpha_im
  COMPLEX :: my_alpha_c
  IF (PRESENT(alpha_im)) THEN
     my_alpha_c = CMPLX(0.,alpha_im)
  END IF
END SUBROUTINE pw_sumup

ICEs on both 4.2 and 4.3, but compiles fine on 4.1.2. The ICE for 4.3 is:
foo.f90: In function ‘pw_sumup’:
foo.f90:1: internal compiler error: in build_int_cst_wide, at tree.c:852

The ICE for 4.2 is:
foo.f90: In function ‘pw_sumup’:
foo.f90:5: internal compiler error: in immed_double_const, at emit-rtl.c:464

CCing Paul and Erik, because he commited some "optional args" patch recently if
I remember correctly.


-- 
           Summary: [4.2/4.3 regression] ICE on optional arg
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-11-28  8:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-25 14:09 [Bug fortran/29976] New: [4.2/4.3 regression] ICE on optional arg fxcoudert at gcc dot gnu dot org
2006-11-25 21:19 ` [Bug fortran/29976] " pinskia at gcc dot gnu dot org
2006-11-27  6:19 ` paulthomas2 at wanadoo dot fr
2006-11-27 22:25 ` pault at gcc dot gnu dot org
2006-11-28  1:18 ` jvdelisle at gcc dot gnu dot org
2006-11-28  5:25 ` paulthomas2 at wanadoo dot fr
2006-11-28  5:40 ` pault at gcc dot gnu dot org
2006-11-28  5:52 ` pault at gcc dot gnu dot org
2006-11-28  8:15 ` pault 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).