https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
Tom de Vries changed:
What|Removed |Added
Keywords||patch
--- Comment #10 from Tom de Vries
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
--- Comment #9 from Tom de Vries ---
(In reply to Tom de Vries from comment #6)
> Looks like a duplicate of PR71536
Actually, this is not fixed by the patch, so likely another issue.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
--- Comment #8 from Tom de Vries ---
(In reply to Tom de Vries from comment #7)
> Created attachment 43571 [details]
> Tentative patch
>
> Works on nvptx for the examples from comment 0, comment 3 and comment 5.
Tested libgomp on x86_64 with
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
--- Comment #7 from Tom de Vries ---
Created attachment 43571
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43571=edit
Tentative patch
Works on nvptx for the examples from comment 0, comment 3 and comment 5.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
--- Comment #6 from Tom de Vries ---
Looks like a duplicate of PR71536
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
--- Comment #5 from Martin Liška ---
So it's equivalent to:
$ cat ~/Programming/testcases/pr84592-3.c
#include
int
main (void)
{
int n[1];
n[0] = 4;
#pragma omp target
{
static const int test[] = {1,2,3,4};
n[1] += test[n[0]];