[Bug c++/89796] New: Incorrect warning generated with OpenMP atomic capture

2019-03-22 Thread perard at cg dot uni-saarland.de
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: perard at cg dot uni-saarland.de Target Milestone: --- Created attachment 46012 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46012&action=edit Sample code that reproduces the issue Hello, I get the

[Bug c++/89796] Incorrect warning generated with OpenMP atomic capture

2019-03-24 Thread perard at cg dot uni-saarland.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796 --- Comment #2 from Arsène Pérard-Gayot --- (In reply to Nicholas Krause from comment #1) > I just compiled this like so: > ./bin/g++ test.cpp -fopenmp -Wall -fconcepts -o name test2.cpp > and got this on a build from yesterday: > > g++: intern

[Bug c++/89796] Incorrect warning generated with OpenMP atomic capture

2019-03-25 Thread perard at cg dot uni-saarland.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796 --- Comment #6 from Arsène Pérard-Gayot --- (In reply to Jakub Jelinek from comment #5) > Created attachment 46018 [details] > gcc9-pr89796.patch > > Untested fix. > > You could have used simpler > #pragma omp atomic capture > prev = c++; > tha