https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72487
Bug ID: 72487 Summary: tree check fail in get_ops, at tree-ssa-reassoc.c:3269 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 39011 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39011&action=edit gzipped C++ source code The attached code, when compiled by gcc trunk dated 20160725, with the compile flag -O3, does this: /home/dcb/rpmbuild/BUILD/cmake-3.6.0/Source/cmGlobalGenerator.cxx:2389:6: internal compiler error: tree check: expected ssa_name, have addr_expr in get_ops, at tree-ssa-reassoc.c:3269 bool cmGlobalGenerator::IsReservedTarget(std::string const& name) ^~~~~~~~~~~~~~~~~ 0x112e91c tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../src/trunk/gcc/tree.c:9742 0x1039838 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../src/trunk/gcc/tree.h:3023 0x1039838 get_ops ../../src/trunk/gcc/tree-ssa-reassoc.c:3269 0x1040833 maybe_optimize_range_tests ../../src/trunk/gcc/tree-ssa-reassoc.c:3522 0x1040833 reassociate_bb ../../src/trunk/gcc/tree-ssa-reassoc.c:5260