[Bug c++/56217] ICE: OpenMP: when combining shared() and a move constructor

radford at blackbean dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 6 20:47:00 GMT 2013


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

--- Comment #4 from Jim Radford <radford at blackbean dot org> 2013-02-06 20:46:42 UTC ---
(In reply to comment #3)
> Should be fixed on the trunk

Thanks!

> Note your testcase is invalid, without
> the taskwait I've added, it relies on NRV and even with NRV, by the time the
> task can run the temporary result of f() can be destructed already.

I had the taskwait in my original.  Still, thanks for the explanation; it adds
to my nascent mental model of openmp.  Maybe one day I'll get something to
compile so I can try it out, but first I'm off to compile gcc!



More information about the Gcc-bugs mailing list