This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61252] Invalid code produced for omp simd reduction(min:var) where var is reference
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 May 2014 12:55:42 +0000
- Subject: [Bug c++/61252] Invalid code produced for omp simd reduction(min:var) where var is reference
- Auto-submitted: auto-generated
- References: <bug-61252-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61252
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I see a problem in the OpenMP lowering, that said, I hope you know that your
testcase doesn't compute the minimum from all iterations, but just the last few
ones (without -fopenmp just the last one, with -fopenmp from one to
vectorization factor of the loop). So the value you get doesn't make any
sense.