[Bug fortran/34108] ICE: Segmentation fault occurs by write(*,0) statement
--- Comment #5 from patchapp at dberlin dot org 2007-11-20 05:03 --- Subject: Bug number PR 34108 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00932.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34108
[Bug fortran/34108] ICE: Segmentation fault occurs by write(*,0) statement
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-11-16 23:29 --- I submitted a patch that removes the ICE and adds a better error message. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added URL||http://gcc.gnu.org/ml/gcc- ||patches/2007- ||11/msg00932.html Keywords||diagnostic, patch Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34108
[Bug fortran/34108] ICE: Segmentation fault occurs by write(*,0) statement
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-11-17 00:10 --- Subject: Bug 34108 Author: fxcoudert Date: Sat Nov 17 00:10:00 2007 New Revision: 130249 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=130249 Log: PR fortran/34108 * io.c (check_format_string): Only check character expressions. (match_dt_format): Return MATCH_ERROR if that is what gfc_match_st_label said. * gfortran.dg/fmt_label_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/fmt_label_1.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/io.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34108
[Bug fortran/34108] ICE: Segmentation fault occurs by write(*,0) statement
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-11-17 00:22 --- Fixed. Thanks for the bug report. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34108
[Bug fortran/34108] ICE: Segmentation fault occurs by write(*,0) statement
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-11-15 16:40 --- Confirmed on x86_64-linux, where it triggers (with valgrind): ==2841== Conditional jump or move depends on uninitialised value(s) ==2841==at 0x43550B: next_char (io.c:141) ==2841==by 0x435616: next_char_not_space (io.c:183) ==2841==by 0x4356C1: format_lex (io.c:221) ==2841==by 0x435A5D: check_format (io.c:467) ==2841==by 0x4369B5: match_io (io.c:927) ==2841==by 0x44D8A9: match_word (parse.c:64) ==2841==by 0x44E078: decode_statement (parse.c:296) ==2841==by 0x44EA84: next_statement (parse.c:505) ==2841==by 0x451EC4: gfc_parse_file (parse.c:3320) ==2841==by 0x479B64: gfc_be_parse_file (f95-lang.c:258) ==2841==by 0x6E901C: toplev_main (toplev.c:1042) ==2841==by 0x4B3B4C9: (below main) (in /usr/lib/debug/libc-2.3.6.so) -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added CC||fxcoudert at gcc dot gnu dot ||org AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 GCC host triplet|i686-pc-cygwin | GCC target triplet|i686-pc-cygwin | Keywords||ice-on-invalid-code Known to fail||4.3.0 Last reconfirmed|-00-00 00:00:00 |2007-11-15 16:40:54 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34108