public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "anlauf at hep dot tu-darmstadt dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/16608] New: gfortran internal compiler error on legal code Date: Sat, 17 Jul 2004 19:07:00 -0000 [thread overview] Message-ID: <20040717190659.16608.anlauf@hep.tu-darmstadt.de> (raw) The attached Fortran 95 conforming code gives an ICE with gfortran: % gfortran -c gfortran-bug5.f90 f951: ../../gcc/gcc/fortran/trans-decl.c:411: gfc_finish_var_decl: Assertion `current_function_decl == (tree) ((void *)0)' failed. gfortran-bug5.f90: In function `copy_s': gfortran-bug5.f90:31: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. gfortran-bug5.f90: -------------8<---------------> cut here <--------------8<-------------- module bug5 implicit none type string private integer :: len = 0 character, pointer :: chars(:) => null() end type string contains pure function len_s(s) type(string), intent(in) :: s integer :: len_s len_s = s%len end function len_s ! -- function copy_s(s) type(string), intent(in) :: s character(len_s(s)) :: copy_s integer :: i do i = 1,len_s(s) copy_s(i:i) = s%chars(i) end do end function copy_s end module bug5 -------------8<---------------> cut here <--------------8<-------------- -- Summary: gfortran internal compiler error on legal code Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: anlauf at hep dot tu-darmstadt dot de CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16608
next reply other threads:[~2004-07-17 19:07 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-17 19:07 anlauf at hep dot tu-darmstadt dot de [this message] 2004-07-17 19:16 ` [Bug fortran/16608] " pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040717190659.16608.anlauf@hep.tu-darmstadt.de \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).