[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

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 8 10:45:00 GMT 2011


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.



More information about the Gcc-bugs mailing list