[Bug c++/88203] assert does not compile with OpenMP's pragma omp parallel for default(none)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 27 10:32:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88203
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, in OpenMP 3.1 and earlier this would be actually valid:
"Variables with const-qualified type having no mutable member are shared."
and __PRETTY_FUNCTION__ etc. is const qualified (const char []).
This has changed in OpenMP 4.0, such variables are no longer predetermined
shared, so must be explicitly listed in data sharing clauses for default(none).
There is nothing wrong on the compiler side here.
More information about the Gcc-bugs
mailing list