This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34196] [4.3 Regression] uninitialized variable warning in dead exception region



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]