This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/68244] New: FAIL: g++.dg/parse/parens3.C -std=gnu++98 (internal compiler error)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68244

            Bug ID: 68244
           Summary: FAIL: g++.dg/parse/parens3.C  -std=gnu++98 (internal
                    compiler error)
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

spawn /test/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++
-B/test/gnu/gcc/objdir/gcc/testsuite/g++/../../
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/parse/parens3.C
-fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++
-I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11
-I/test
/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include
-I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/test/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++98
-w -S -o parens3.s/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/parse/parens3.C: In
function 'int f()':/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/parse/parens3.C:18:1:
internal compiler error: in dwarf2out_frame_debug_expr, at
dwarf2cfi.c:1596libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/parse/parens3.C: In function 'int f()':
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/parse/parens3.C:18:1: internal compiler
e
rror: in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1596
libbacktrace could not find executable to openPlease submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

FAIL: g++.dg/parse/parens3.C  -std=gnu++98 (internal compiler error)
FAIL: g++.dg/parse/parens3.C  -std=gnu++98 (test for excess errors)
Excess errors:
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/parse/parens3.C:18:1: internal compiler
error: in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1596
libbacktrace could not find executable to open

The ICE is here:
              /* Saving a register in a register.  */
              gcc_assert (!fixed_regs [REGNO (dest)]
                          /* For the SPARC and its register window.  */
                          || (dwf_regno (src) == DWARF_FRAME_RETURN_COLUMN));

The parsing of this statement

register struct s *reg __asm__( "1" );

causes register "1" to be gloabized and fixed:

Breakpoint 7, _Z13globalize_regP9tree_nodei (decl=0x7b0200b0, i=1)
    at ../../gcc/gcc/reginfo.c:800
800       fixed_regs[i] = call_used_regs[i] = 1;
(gdb) p i
$24 = 1
(gdb) bt
Python Exception <type 'exceptions.ImportError'> Failed to load
/home/gnu/lib/python2.7/lib-dynload/itertools.sl: 
#0  _Z13globalize_regP9tree_nodei (decl=0x7b0200b0, i=1)
    at ../../gcc/gcc/reginfo.c:800
#1  0x022aaac8 in _Z11SOURCE_LINEPK17line_map_ordinaryj (ord_map=0x7b0200b0, 
    loc=12) at ../../gcc/libcpp/include/line-map.h:894
#2  0x016a7878 in _Z24rest_of_decl_compilationP9tree_nodeii (decl=0x7b0200b0, 
    top_level=1, at_end=0) at ../../gcc/gcc/passes.c:192
#3  0x00123374 in _ZL26make_rtl_for_nonlocal_declP9tree_nodeS0_PKc (
    decl=0x7b0200b0, init=0x0, asmspec=0x7aede220 "1")
    at ../../gcc/gcc/cp/decl.c:6225
#4  0x00127da0 in _Z14cp_finish_declP9tree_nodeS0_bS0_i (decl=0x7b0200b0, 
    init=0x0, init_const_expr_p=false, asmspec_tree=0x7aede210, flags=1)
    at ../../gcc/gcc/cp/decl.c:6840
#5  0x00372e98 in
_ZL25cp_parser_init_declaratorP9cp_parserP21cp_decl_specifier_seqP3vecI21deferred_access_check5va_gc8vl_embedEbbiPbPP9tree_nodePj
(
    parser=0x7b020058, decl_specifiers=0x7eff0a6c, checks=0x0, 
    function_definition_allowed_p=true, member_p=false, 
    declares_class_or_enum=1, function_definition_p=0x7eff0aec, 
    maybe_range_for_decl=0x0, init_loc=0x7eff0ae8)
    at ../../gcc/gcc/cp/parser.c:18214
#6  0x00360bb0 in _ZL28cp_parser_simple_declarationP9cp_parserbPP9tree_node (
    parser=0x7b020058, function_definition_allowed_p=true, 
    maybe_range_for_decl=0x0) at ../../gcc/gcc/cp/parser.c:11988
#7  0x003607b8 in _ZL27cp_parser_block_declarationP9cp_parserb (
---Type <return> to continue, or q <return> to quit---
    parser=0x7b020058, statement_p=false) at ../../gcc/gcc/cp/parser.c:11862
#8  0x00360364 in _ZL21cp_parser_declarationP9cp_parser (parser=0x7b020058)
    at ../../gcc/gcc/cp/parser.c:11759
#9  0x0035fb64 in _ZL29cp_parser_declaration_seq_optP9cp_parser (
    parser=0x7b020058) at ../../gcc/gcc/cp/parser.c:11638
#10 0x00347df8 in _ZL26cp_parser_translation_unitP9cp_parser (
    parser=0x7b020058) at ../../gcc/gcc/cp/parser.c:4168
#11 0x003bee00 in _Z12c_parse_filev () at ../../gcc/gcc/cp/parser.c:36138
#12 0x0073ec98 in _Z19c_common_parse_filev ()
    at ../../gcc/gcc/c-family/c-opts.c:1064
#13 0x01953728 in _ZL12compile_filev () at ../../gcc/gcc/toplev.c:466
#14 0x0195893c in _ZL10do_compilev () at ../../gcc/gcc/toplev.c:1954
#15 0x019590bc in _ZN6toplev4mainEiPPc (this=0x7eff06d8, argc=16, 
    argv=0x7eff056c) at ../../gcc/gcc/toplev.c:2061
#16 0x023463d8 in _Z11SOURCE_LINEPK17line_map_ordinaryj (ord_map=0x10, 
    loc=2130642284) at ../../gcc/libcpp/include/line-map.h:894
#17 0xc0145a30 in _start () from /usr/lib/libc.2
#18 0x000a4728 in $START$ ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]