This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51460] [4.6/4.7 Regression] Struct with two boost mutexes allocated on the heap inside of a while loop causes compiler segfault
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Dec 2011 10:43:21 +0000
- Subject: [Bug middle-end/51460] [4.6/4.7 Regression] Struct with two boost mutexes allocated on the heap inside of a while loop causes compiler segfault
- Auto-submitted: auto-generated
- References: <bug-51460-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51460
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.5.3
Known to fail| |4.6.2, 4.7.0
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-08 10:43:21 UTC ---
Reduced testcase that fails with both 4.7 and 4.6:
class mx {
public:
mx();
};
int main()
{
while (true) {
mx *bar = new mx;
mx *baz = new mx;
continue;
}
return 0;
}
4.5 happens to work.