------- Comment #1 from pinskia at gcc dot gnu dot org  2007-12-03 03:33 -------
This looks like a front-end/gimplifier bug.

So we have:
allocator::allocator();
try {
  char* a = s->c_str();
  t = string::string(a);
  try {
   b =  wtx-> unserialise (t);
   wt = AutoPtr::AutoPtr (b);
  } finnally {
    try {
      string::~string(t);
      } catch
      {
        AutoPtr::~AutoPtr (wt);
      }
  }
}
...


At the time we call ~AutoPtr, it does not have to be fully constructored.

I think this is related (and maybe even caused by) PR 15764.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-03 03:33:45
               date|                            |


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

Reply via email to