https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119102

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> We're taking the non-OpenMP branch there, but the error from GCC seems to be
> incorrectly referring to OpenMP.
> 
> The docs for attribute simd say:
> 
> If the attribute is specified and #pragma omp declare simd is present on a
> declaration and the -fopenmp or -fopenmp-simd switch is specified, then the
> attribute is ignored.

The vectorizer uses those functions with the simd attribute (but not #pragma
omp simd) anyway though.  I think the frontend shouldn't complain about this.

Reply via email to