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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |4.7.0
            Summary|[C++11] internal compiler   |[4.7 Regression] [C++11]
                   |error: in lvalue_kind, at   |internal compiler error: in
                   |cp/tree.c:153               |lvalue_kind, at
                   |                            |cp/tree.c:153

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-16 
02:49:54 UTC ---
Confirmed reduced testcase:
struct msgpack_zone_finalizer_array {
    int* tail;
};
struct msgpack_zone {
    msgpack_zone_finalizer_array finalizer_array;
};
struct zone : public msgpack_zone {
    template <typename T> T* allocate();

};
template <typename T>
T* zone::allocate()
{
  --msgpack_zone::finalizer_array.tail;
}
--- CUT ---

Reply via email to