[Bug c++/65269] New: internal compiler error: Segmentation fault

hgkamath at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 1 22:10:00 GMT 2015


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

            Bug ID: 65269
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hgkamath at hotmail dot com

Created attachment 34914
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34914&action=edit
preprocessed_source a.cc

c++-concepts branch.
attached: preprocessed source a.cc 

date 20150227

Built gcc locally from 
https://bitbucket.org/Blzut3/c-concepts/src

Tried to build origin from
https://github.com/asutton/origin


 /vol/apps/conceptgcc/20150227/bin/g++ -std=c++1z ~/tmp/a.cc
/vol/apps/conceptgcc/build/or/origin/origin/core/concepts.test/difference_type.cpp:16:30:
internal compiler error: Segmentation fault
   using difference_type = int;
                              ^
0xc78d4f crash_signal
    ../../gcc/toplev.c:358
0x6fe5ae tree_check(tree_node*, char const*, int, char const*, tree_code)
    ../../gcc/tree.h:2750
0x6fe5ae cp_parser_alias_declaration
    ../../gcc/cp/parser.c:17053
0x709df5 cp_parser_member_declaration
    ../../gcc/cp/parser.c:21274
0x6eaf4b cp_parser_member_specification_opt
    ../../gcc/cp/parser.c:21181
0x6eaf4b cp_parser_class_specifier_1
    ../../gcc/cp/parser.c:20373
0x6ed800 cp_parser_class_specifier
    ../../gcc/cp/parser.c:20609
0x6ed800 cp_parser_type_specifier
    ../../gcc/cp/parser.c:15036
0x6ee975 cp_parser_decl_specifier_seq
    ../../gcc/cp/parser.c:11960
0x7084a9 cp_parser_simple_declaration
    ../../gcc/cp/parser.c:11539
0x708a53 cp_parser_block_declaration
    ../../gcc/cp/parser.c:11488
0x70e55b cp_parser_declaration
    ../../gcc/cp/parser.c:11384
0x70e86a cp_parser_declaration_seq_opt
    ../../gcc/cp/parser.c:11263
0x70eb87 cp_parser_translation_unit
    ../../gcc/cp/parser.c:4172
0x70eb87 c_parse_file()
    ../../gcc/cp/parser.c:33294
0x844de2 c_common_parse_file()
    ../../gcc/c-family/c-opts.c:1039
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.




template<typename T, typename U>
constexpr bool Has_difference_type()
{
  return origin::Same<origin::Difference_type<T>, U>();
}

struct S
{
  using difference_type = int;
};



More information about the Gcc-bugs mailing list