https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64701
Bug ID: 64701 Summary: internal compiler error: unexpected expression ‘<statement>’ of kind do_stmt Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Created attachment 34508 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34508&action=edit preprocessed source $ ./cc1plus -quiet -fpreprocessed ccBLvhHJ.err -o /dev/null In file included from /builddir/build/BUILD/open-vm-tools-9.4.6-1770165/lib/include/hostinfo.h:34:0, from dndGuest/rpcV3Util.cpp:45: /builddir/build/BUILD/open-vm-tools-9.4.6-1770165/lib/include/x86cpuid.h: In function ‘uint32 CPUID_EFFECTIVE_FAMILY(uint32)’: /builddir/build/BUILD/open-vm-tools-9.4.6-1770165/lib/include/x86cpuid.h:1038:339: internal compiler error: unexpected expression ‘<statement>’ of kind do_stmt 0x86232f cxx_eval_constant_expression /home/marek/src/gcc/gcc/cp/constexpr.c:3450 0x86710f cxx_eval_statement_list /home/marek/src/gcc/gcc/cp/constexpr.c:2855 0x8619fd cxx_eval_constant_expression /home/marek/src/gcc/gcc/cp/constexpr.c:3374 0x8620ba cxx_eval_constant_expression /home/marek/src/gcc/gcc/cp/constexpr.c:3380 0x86748b cxx_eval_outermost_constant_expr /home/marek/src/gcc/gcc/cp/constexpr.c:3505 0x86acf8 maybe_constant_value(tree_node*, tree_node*) /home/marek/src/gcc/gcc/cp/constexpr.c:3617 0x7b1bcc cp_convert_and_check(tree_node*, tree_node*, int) /home/marek/src/gcc/gcc/cp/cvt.c:639 0x64fd87 convert_like_real /home/marek/src/gcc/gcc/cp/call.c:6565 0x650e31 perform_implicit_conversion_flags(tree_node*, tree_node*, int, int) /home/marek/src/gcc/gcc/cp/call.c:9405 0x6f8fe1 digest_init_r /home/marek/src/gcc/gcc/cp/typeck2.c:1068 0x6fbf5a digest_init_flags /home/marek/src/gcc/gcc/cp/typeck2.c:1137 0x6fbf5a store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) /home/marek/src/gcc/gcc/cp/typeck2.c:811 0x6698e4 check_initializer /home/marek/src/gcc/gcc/cp/decl.c:5980 0x690bdc cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) /home/marek/src/gcc/gcc/cp/decl.c:6616 0x776229 cp_parser_init_declarator /home/marek/src/gcc/gcc/cp/parser.c:17291 0x7779ad cp_parser_simple_declaration /home/marek/src/gcc/gcc/cp/parser.c:11601 0x7571d3 cp_parser_block_declaration /home/marek/src/gcc/gcc/cp/parser.c:11475 0x758421 cp_parser_declaration_statement /home/marek/src/gcc/gcc/cp/parser.c:11122 0x75b687 cp_parser_statement /home/marek/src/gcc/gcc/cp/parser.c:9830 0x75be89 cp_parser_statement_seq_opt /home/marek/src/gcc/gcc/cp/parser.c:10108 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.