[Bug c++/68010] New: internal compiler error: in tree_to_shwi, at tree.h:3661

2015-10-18 Thread ghoort1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68010

Bug ID: 68010
   Summary: internal compiler error: in tree_to_shwi, at
tree.h:3661
   Product: gcc
   Version: 4.9.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ghoort1 at gmail dot com
  Target Milestone: ---

I tried to compile debug version of code with many templates class. 
There are
_usr_lib_gcc_x86_64-linux-gnu_4.9_cc1plus.1000.crash
cct1Lgt3.out

but I cannot attach them due to their big sizes.


[Bug c++/68010] internal compiler error: in tree_to_shwi, at tree.h:3661

2015-10-18 Thread ghoort1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68010

--- Comment #1 from ghoort1 at gmail dot com ---
At GCC-5.1.1

/home/ghoort/projects/nfg/NFserver/StructDecoder.h:67:2: internal compiler
error: in tree_to_shwi, at tree.h:3856
  }
  ^
0x806864 tree_to_shwi(tree_node const*)
../../src/gcc/tree.h:3856
0x806864 add_data_member_location_attribute
../../src/gcc/dwarf2out.c:15327
0x8137ce gen_inheritance_die
../../src/gcc/dwarf2out.c:19886
0x8137ce gen_member_die
../../src/gcc/dwarf2out.c:19938
0x8137ce gen_struct_or_union_type_die
../../src/gcc/dwarf2out.c:20039
0x81425c gen_tagged_type_die
../../src/gcc/dwarf2out.c:20228
0x8145c1 gen_type_die_with_usage
../../src/gcc/dwarf2out.c:20377
0x815881 gen_type_die
../../src/gcc/dwarf2out.c:20430
0x815881 modified_type_die
../../src/gcc/dwarf2out.c:10817
0x815fff force_type_die
../../src/gcc/dwarf2out.c:20729
0x8161db get_context_die
../../src/gcc/dwarf2out.c:20644
0x8161db force_decl_die
../../src/gcc/dwarf2out.c:20663
0x81611a get_context_die
../../src/gcc/dwarf2out.c:20647
0x81611a force_decl_die
../../src/gcc/dwarf2out.c:20663
0x825853 dwarf2out_imported_module_or_decl_1
../../src/gcc/dwarf2out.c:21157
0x825d07 process_scope_var
../../src/gcc/dwarf2out.c:20540
0x825da7 decls_for_scope
../../src/gcc/dwarf2out.c:20567
0x825f58 gen_lexical_block_die
../../src/gcc/dwarf2out.c:19487
0x825f58 gen_block_die
../../src/gcc/dwarf2out.c:20514
0x825e0a decls_for_scope
../../src/gcc/dwarf2out.c:20581
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
CMakeFiles/NFServer.dir/build.make:445: recipe for target
'CMakeFiles/NFServer.dir/home/ghoort/projects/nfg/NFserver/nfg_parser.cpp.o'
failed


[Bug c++/68010] internal compiler error: in tree_to_shwi, at tree.h:3661

2015-10-18 Thread ghoort1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68010

--- Comment #3 from Andrey Chistyakov  ---
Created attachment 36538
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36538&action=edit
crash file


[Bug debug/68010] internal compiler error: in tree_to_shwi, at tree.h:3661

2015-10-21 Thread ghoort1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68010

--- Comment #6 from Andrey Chistyakov  ---
I simplified the Marcus' code:

Ghoort@blade /cygdrive/c/Projects/bug
$ cat c2.cpp
namespace boost {}

template 
struct C {
};

template  class StructDecoder : C {
public:
  StructDecoder()  {
namespace bs = boost;
using namespace bs;
  }
};

void NFGParserparse() {
  StructDecoder q_syslog_desc;
}

Ghoort@blade /cygdrive/c/Projects/bug
$ g++ -c -g c2.cpp

c2.cpp: In constructor «StructDecoder::StructDecoder() [with Skipper =
int]»:
c2.cpp:12:3: internal compiler error: в tree_to_shwi, в tree.h:3661
   }
   ^
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.