This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34196] [4.3 Regression] uninitialized variable warning in dead exception region
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2007 03:33:45 -0000
- Subject: [Bug c++/34196] [4.3 Regression] uninitialized variable warning in dead exception region
- References: <bug-34196-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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