[Bug middle-end/80809] Multi-free error for variable size array used within OpenMP task
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 22 13:03:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80809
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 41400
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41400&action=edit
gcc8-pr80809.patch
Fix for the incorrect implicit determination. The bug was that we turned the
(implicit in this case, but could be explicit too) shared clause on the
parallel
for the VLA into a private clause (to privatize the variable to hold debug info
in it; the actual VLA is then what a firstprivate pointer points to) too early,
we need to consider it shared while determining data sharing in inner
constructs, and only turn it into a private clause when we are done with that.
The other bug is with the incorrect VLA size, I'll work on it next.
More information about the Gcc-bugs
mailing list