https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69159

            Bug ID: 69159
           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: doko at gcc dot gnu.org
  Target Milestone: ---

trunk r232040, x86_64-linux-gnu

reduced test case:

class GeneralIO {
protected:
  int util_;
  bool bin_;
  ~GeneralIO();
};
class A : GeneralIO {
  A(const GeneralIO &);
};
A::A(const GeneralIO &p1) : GeneralIO(p1) {}

$ g++ -c -g -O2 corpus-io-eda.ii 
corpus-io-eda.ii: In constructor 'A::A(const GeneralIO&)':
corpus-io-eda.ii:10:41: internal compiler error: in store_field, at expr.c:6659
 A::A(const GeneralIO &p1) : GeneralIO(p1) {}
                                         ^

0x86bf15 store_field
        ../../src/gcc/expr.c:6659
0x868f4e expand_assignment(tree_node*, tree_node*, bool)
        ../../src/gcc/expr.c:5020
0x788dbe expand_gimple_stmt_1
        ../../src/gcc/cfgexpand.c:3606
0x788dbe expand_gimple_stmt
        ../../src/gcc/cfgexpand.c:3702
0x78a8bc expand_gimple_basic_block
        ../../src/gcc/cfgexpand.c:5708
0x78f7c6 execute
        ../../src/gcc/cfgexpand.c:6323
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to