[Bug target/96835] Constructor in offload template class

2020-11-17 Thread tobias.weinzierl at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 --- Comment #7 from Tobias Weinzierl --- Adding a default constructor to the vector class still does not allow us to create the object on the target: #include #define mydt double #pragma omp declare target struct vector { vector() {};

[Bug target/96835] Constructor in offload template class

2020-11-17 Thread tobias.weinzierl at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 --- Comment #6 from Tobias Weinzierl --- We've found some more stuff. This works: #include #define mydt double #pragma omp declare target struct vector { vector(mydt x, mydt y); mydt dot(vector o); mydt v[2]; }; vector::vector(mydt

[Bug target/96835] Constructor in offload template class

2020-11-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 --- Comment #5 from Tobias Burnus --- (In reply to Tobias Weinzierl from comment #4) > Created attachment 49339 [details] > Reproducer Compiles here with mainline (11.0.0 20201104) and nvptx offloading (-O0). I wonder whether that was fixed by:

[Bug target/96835] Constructor in offload template class

2020-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 Jonathan Wakely changed: What|Removed |Added Status|WAITING |UNCONFIRMED Ever confirmed|1

[Bug target/96835] Constructor in offload template class

2020-10-09 Thread tobias.weinzierl at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 --- Comment #4 from Tobias Weinzierl --- Created attachment 49339 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49339=edit Reproducer

[Bug target/96835] Constructor in offload template class

2020-10-05 Thread tobias.weinzierl at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 --- Comment #3 from Tobias Weinzierl --- The full compilation error is + g++-10 -fopenmp -foffload=nvptx-none bug.cpp -o bug ptxas /tmp/cc1XobxJ.o, line 253; error : Illegal operand type to instruction 'ld' ptxas /tmp/cc1XobxJ.o, line 266;

[Bug target/96835] Constructor in offload template class

2020-10-05 Thread tobias.weinzierl at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 --- Comment #2 from Tobias Weinzierl --- #include #pragma omp declare target template struct vector { int values_[sz]; vector(); vector(int const& init_val); int dot(vector o) { int res = 0; for (int i = 0; i < sz; ++ i)

[Bug target/96835] Constructor in offload template class

2020-08-28 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Last