[Bug c++/102854] [OpenMP] Bogus "initializer expression refers to iteration variable" when using templates

2023-07-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102854 Tobias Burnus changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c++/102854] [OpenMP] Bogus "initializer expression refers to iteration variable" when using templates

2023-07-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102854 --- Comment #4 from Tobias Burnus --- The testcase of comment 2 seems to be the same as the one of bug 106449 comment 4, which went in as r13-1887-g97d32048c04e97 openmp: Fix up handling of non-rectangular simd loops with pointer type

[Bug c++/102854] [OpenMP] Bogus "initializer expression refers to iteration variable" when using templates

2021-10-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102854 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:6b0f35299bd1468ebc13b900a73b7cac6181a2aa commit r12-4732-g6b0f35299bd1468ebc13b900a73b7cac6181a2aa Author: Jakub Jelinek Date:

[Bug c++/102854] [OpenMP] Bogus "initializer expression refers to iteration variable" when using templates

2021-10-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102854 --- Comment #2 from Jakub Jelinek --- Created attachment 51647 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51647=edit gcc12-pr102854-wip.patch WIP patch. Clearly still more work is needed, apparently pointer iterators in

[Bug c++/102854] [OpenMP] Bogus "initializer expression refers to iteration variable" when using templates

2021-10-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102854 --- Comment #1 from Tobias Burnus --- For the non-template case (with int / IndexType reversed, (ups!)): finish_omp_for's vec *orig_inits is an empty vector but for the template, it isn't (it contains '0' and 'i'); thus, the following check