public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/60147] New: [Regression] ICE with -fdump-tree-original and NAMELIST
Date: Tue, 11 Feb 2014 16:10:00 -0000	[thread overview]
Message-ID: <bug-60147-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 60147
           Summary: [Regression] ICE with -fdump-tree-original and
                    NAMELIST
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org

program foo
   implicit none
   character(len=5) :: s = 'tue'
   namelist /mylist/ s
end program

% gfc4x -o z -fdump-tree-original g.f90
g.f90: In function 'foo':
g.f90:5:0: internal compiler error: Segmentation fault
 end program
 ^
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) run -fdump-tree-original g.f90
Starting program:
/usr/home/sgk/work/4x/libexec/gcc/x86_64-unknown-freebsd11.0/4.9.0/f951
-fdump-tree-original g.f90
 foo
Program received signal SIGSEGV, Segmentation fault.
0x0000000000b094a2 in dump_generic_node (buffer=0x18ccc00 <buffer>, 
    node=0x202f1f4c8, spc=2, flags=512, is_stmt=false)
    at ../../gcc4x/gcc/tree-pretty-print.c:1495
1495    ../../gcc4x/gcc/tree-pretty-print.c: No such file or directory.
(gdb) bt
#0  0x0000000000b094a2 in dump_generic_node (buffer=0x18ccc00 <buffer>, 
    node=0x202f1f4c8, spc=2, flags=512, is_stmt=false)
    at ../../gcc4x/gcc/tree-pretty-print.c:1495
#1  0x0000000000b18de5 in print_declaration (buffer=0x18ccc00 <buffer>, 
    t=0x202dff7e8, spc=2, flags=512)
    at ../../gcc4x/gcc/tree-pretty-print.c:2759
#2  0x0000000000b0a2d4 in dump_generic_node (buffer=0x18ccc00 <buffer>, 
    node=0x202dec510, spc=0, flags=512, is_stmt=true)
    at ../../gcc4x/gcc/tree-pretty-print.c:1723
#3  0x0000000000b1969e in print_generic_stmt_indented (file=<optimized out>, 
    t=0x202dec510, flags=512, indent=0)
    at ../../gcc4x/gcc/tree-pretty-print.c:157
#4  0x0000000000a845b9 in dump_function_to_file (fndecl=<optimized out>, 
    file=0x202bb3370, flags=512) at ../../gcc4x/gcc/tree-cfg.c:7117
#5  0x0000000000a9de89 in dump_function (phase=5, fn=0x202f24b00)
    at ../../gcc4x/gcc/tree-dump.c:170
#6  0x0000000000607c33 in gfc_generate_function_code (ns=0x203459600)
    at ../../gcc4x/gcc/fortran/trans-decl.c:5706
#7  0x000000000059a0b7 in translate_all_program_units (
    main_in_tu=<optimized out>, gfc_global_ns_list=0x203459600)
    at ../../gcc4x/gcc/fortran/parse.c:4536
#8  gfc_parse_file () at ../../gcc4x/gcc/fortran/parse.c:4733
#9  0x00000000005d7366 in gfc_be_parse_file ()
    at ../../gcc4x/gcc/fortran/f95-lang.c:188
#10 0x0000000000a4f136 in compile_file () at ../../gcc4x/gcc/toplev.c:548
#11 0x0000000000a4f9f3 in do_compile () at ../../gcc4x/gcc/toplev.c:1914
#12 0x0000000000a50562 in toplev_main (argc=3, argv=0x7fffffffd4c8)
    at ../../gcc4x/gcc/toplev.c:1990
#13 0x0000000000528daf in _start ()


             reply	other threads:[~2014-02-11 16:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11 16:10 kargl at gcc dot gnu.org [this message]
2014-02-11 17:39 ` [Bug fortran/60147] [4.9 Regression] " dominiq at lps dot ens.fr
2014-02-11 19:15 ` dominiq at lps dot ens.fr
2014-02-22  0:35 ` [Bug middle-end/60147] " burnus at gcc dot gnu.org
2014-02-22  0:38 ` burnus at gcc dot gnu.org
2014-02-27  9:29 ` rguenth at gcc dot gnu.org
2014-02-27 23:24 ` burnus at gcc dot gnu.org
2014-02-27 23:26 ` burnus at gcc dot gnu.org
2014-02-27 23:33 ` sgk at troutmask dot apl.washington.edu

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=bug-60147-4@http.gcc.gnu.org/bugzilla/ \
    --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: link
Be 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).