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++/57946] New: internal compiler error: Segmentation fault in int_fits_type_p


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

            Bug ID: 57946
           Summary: internal compiler error: Segmentation fault in
                    int_fits_type_p
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cas43 at cs dot stanford.edu

when compiling this program:

enum ENUM2 {  ENUM2_a = (enum ENUM2) 4,  ENUM2_b = 0x9FFFFFFF,  ENUM2_c =
0x100000000 };

like this:  g++ prog.cpp

I get this output:

prog.cpp:1:40: internal compiler error: Segmentation fault
   enum ENUM2 {  ENUM2_a = (enum ENUM2) 4,  ENUM2_b = 0x9FFFFFFF,  ENUM2_c =
0x100000000 };
                                        ^
0xaac4cf crash_signal
    ../../s-4.9/gcc/toplev.c:333
0xc9c684 int_fits_type_p(tree_node const*, tree_node const*)
    ../../s-4.9/gcc/tree.c:8543
0x6587ae ocp_convert(tree_node*, tree_node*, int, int, int)
    ../../s-4.9/gcc/cp/cvt.c:754
0x656437 cp_build_c_cast(tree_node*, tree_node*, int)
    ../../s-4.9/gcc/cp/typeck.c:7052
0x619f1f cp_parser_binary_expression
    ../../s-4.9/gcc/cp/parser.c:7692
0x61a3df cp_parser_assignment_expression
    ../../s-4.9/gcc/cp/parser.c:7928
0x61a836 cp_parser_assignment_expression
    ../../s-4.9/gcc/cp/parser.c:7978
0x61a836 cp_parser_constant_expression
    ../../s-4.9/gcc/cp/parser.c:8188
0x60dfc7 cp_parser_enumerator_definition
    ../../s-4.9/gcc/cp/parser.c:15361
0x60dfc7 cp_parser_enumerator_list
    ../../s-4.9/gcc/cp/parser.c:15308
0x60dfc7 cp_parser_enum_specifier
    ../../s-4.9/gcc/cp/parser.c:15234
0x60dfc7 cp_parser_type_specifier
    ../../s-4.9/gcc/cp/parser.c:14014
0x622ad9 cp_parser_decl_specifier_seq
    ../../s-4.9/gcc/cp/parser.c:11288
0x626599 cp_parser_simple_declaration
    ../../s-4.9/gcc/cp/parser.c:10878
0x6285a0 cp_parser_block_declaration
    ../../s-4.9/gcc/cp/parser.c:10827
0x63160b cp_parser_declaration
    ../../s-4.9/gcc/cp/parser.c:10724
0x6302dd cp_parser_declaration_seq_opt
    ../../s-4.9/gcc/cp/parser.c:10610
0x631b92 cp_parser_translation_unit
    ../../s-4.9/gcc/cp/parser.c:3930
0x631b92 c_parse_file()
    ../../s-4.9/gcc/cp/parser.c:28827
0x742ad4 c_common_parse_file()
    ../../s-4.9/gcc/c-family/c-opts.c:1046
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.


Compiler version:

Using built-in specs.
COLLECT_GCC=/home/craig/new-gcc/i-4.9/bin/g++
COLLECT_LTO_WRAPPER=/home/craig/new-gcc/i-4.9/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../s-4.9/configure --prefix=/home/craig/new-gcc/i-4.9
Thread model: posix
gcc version 4.9.0 20130718 (experimental) (GCC)


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