https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66770
Bug ID: 66770 Summary: [6 Regression] 252.eon in SPEC CPU 2000 failed to build Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: rguenther at suse dot de Target Milestone: --- On Linux/x86-64, r225375 caused: g++ -c -o ggQuaternion.o -std=c++11 -DSPEC_CPU2000_LP64 -DHAS_ERRLIST -I. -DNDEBUG -O2 -ffast-math ggQuaternion.cc ggQuaternion.cc: In function 'ggQuaternion ggSlerp(const ggQuaternion&, const ggQuaternion&, double)': ggQuaternion.cc:284:21: internal compiler error: Segmentation fault if ((1.0-cosom)>ggEpsilon){ ^ 0xd765bf crash_signal ../../src-trunk/gcc/toplev.c:360 0xb02e3d tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) ../../src-trunk/gcc/tree.h:2980 0xb02e3d generic_simplify(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /export/gnu/import/git/gcc-test-spec/bld/gcc/generic-match.c:16678 0x9e4d57 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../src-trunk/gcc/fold-const.c:9413 0xa090bc fold(tree_node*) ../../src-trunk/gcc/fold-const.c:12984 0x720bcb cp_build_binary_op(unsigned int, tree_code, tree_node*, tree_node*, int) ../../src-trunk/gcc/cp/typeck.c:5059 0x5dfe9d build_new_op_1 ../../src-trunk/gcc/cp/call.c:5668 0x5e0b5e build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) ../../src-trunk/gcc/cp/call.c:5713 0x70f14e build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node**, int) ../../src-trunk/gcc/cp/typeck.c:3798 0x6e4b30 cp_parser_binary_expression ../../src-trunk/gcc/cp/parser.c:8283 0x6e514f cp_parser_assignment_expression ../../src-trunk/gcc/cp/parser.c:8405 0x6e7cf1 cp_parser_expression ../../src-trunk/gcc/cp/parser.c:8559 0x6f15ad cp_parser_condition ../../src-trunk/gcc/cp/parser.c:10371 0x6fddb5 cp_parser_selection_statement ../../src-trunk/gcc/cp/parser.c:10143 0x6fddb5 cp_parser_statement ../../src-trunk/gcc/cp/parser.c:9676 0x6fe302 cp_parser_statement_seq_opt ../../src-trunk/gcc/cp/parser.c:10089 0x6fe45b cp_parser_compound_statement ../../src-trunk/gcc/cp/parser.c:10043 0x6fde35 cp_parser_selection_statement ../../src-trunk/gcc/cp/parser.c:10172 0x6fde35 cp_parser_statement ../../src-trunk/gcc/cp/parser.c:9676 0x6fe302 cp_parser_statement_seq_opt ../../src-trunk/gcc/cp/parser.c:10089 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. specmake[3]: *** [ggQuaternion.o] Error 1