[Bug c++/71974] Warning: uninitialized variable with OpenMP nested loops

2017-08-27 Thread register at rgug dot ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71974 --- Comment #3 from Rafael Guglielmetti --- (In reply to Eric Gallager from comment #2) > (In reply to Rafael Guglielmetti from comment #1) > > With gcc 6.1.1, the above code gives rise to the error: > > error: condition expression refers to iter

[Bug c++/71974] Warning: uninitialized variable with OpenMP nested loops

2016-07-25 Thread register at rgug dot ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71974 --- Comment #1 from Rafael Guglielmetti --- With gcc 6.1.1, the above code gives rise to the error: error: condition expression refers to iteration variable ā€˜iā€™ So I suppose my syntax was incorrect. It is annoying tough.

[Bug c++/71974] New: Warning: uninitialized variable with OpenMP nested loops

2016-07-22 Thread register at rgug dot ch
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: register at rgug dot ch Target Milestone: --- I used the collapse clause of OpenMP to work with a doubly nested loop as follows: unsigned int iMax(10); #pragma omp parallel for schedule(dynamic