https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68983
Bug ID: 68983 Summary: [6 Regression] ICE: in store_field, at expr.c:6659 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: jason at gcc dot gnu.org Target Milestone: --- Trying to build LibreOffice shows: markus@x4 tmp % g++ -c -w scmod.ii scmod.ii: In constructor ‘ScGridOptions::ScGridOptions(const SvxOptionsGrid&)’: scmod.ii:5039:163: internal compiler error: in store_field, at expr.c:6659 class ScGridOptions : public SvxOptionsGrid { public: ScGridOptions() : SvxOptionsGrid() {} ScGridOptions( const SvxOptionsGrid& rOpt ) : SvxOptionsGrid( rOpt ) {} void SetDefaults(); const ScGridOptions& operator= ( const ScGridOptions& rCpy ); bool operator== ( const ScGridOptions& rOpt ) const; bool operator!= ( const ScGridOptions& rOpt ) const { return !(operator==(rOpt)); } }; ^ 0x9f28a6 store_field ../../gcc/gcc/expr.c:6659 0x9ed991 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/gcc/expr.c:5020 0x8e07fe expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:3606 0x8e07fe expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:3702 0x8e3ee4 expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:5708 0x8e8ed6 execute ../../gcc/gcc/cfgexpand.c:6323 Started with r228704: commit ab48ece0923ded0cbd089ce31d1b3d26c239bc4e Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Mon Oct 12 07:58:43 2015 +0000 PR c++/67557 * expr.c (store_field): Call store_constructor directly when storing a CONSTRUCTOR into a target smaller than its type. Guard against unsafe bitwise copy. Reducing will take a while (8 Mb boost testcase)...