http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46335

           Summary: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: marc.gli...@normalesup.org


The following code compiles fine in C++03 but not in C++0X mode. The code looks
vaguely similar to that of PR c++/46129, but the effects are different.

struct T { };
struct A {
    A(const T &tr =T()) {}
};
struct B {
    A k;
};
B kk_;
A fk_;


bug.cc: In constructor ‘B::B()’:
bug.cc:5:9: internal compiler error: in gimple_add_tmp_var, at gimplify.c:701

Reply via email to