public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96835] New: Constructor in offload template class
@ 2020-08-28  9:40 tobias.weinzierl at durham dot ac.uk
  2020-08-28 16:07 ` [Bug target/96835] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: tobias.weinzierl at durham dot ac.uk @ 2020-08-28  9:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835

            Bug ID: 96835
           Summary: Constructor in offload template class
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tobias.weinzierl at durham dot ac.uk
  Target Milestone: ---

I have a simple templated vector class with multiple constructors:

#ifdef GPUOffloading
#pragma omp declare target
#endif
template<int Size, typename Scalar>
struct tarch::la::Vector {
  private:
    Scalar _values[Size];

  public:
    Vector();

    Vector (const Scalar& initialValue);

[...]

This code translates fine and I can use the vector class as long as I do not
use one of the constructors (all the other non-overloaded routines work fine).
I either get

lto1: internal compiler error: Segmentation fault

or an undefined symbol error.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-17 17:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28  9:40 [Bug target/96835] New: Constructor in offload template class tobias.weinzierl at durham dot ac.uk
2020-08-28 16:07 ` [Bug target/96835] " jakub at gcc dot gnu.org
2020-10-05 16:12 ` tobias.weinzierl at durham dot ac.uk
2020-10-05 16:14 ` tobias.weinzierl at durham dot ac.uk
2020-10-09 10:52 ` tobias.weinzierl at durham dot ac.uk
2020-11-09 12:02 ` redi at gcc dot gnu.org
2020-11-09 13:24 ` burnus at gcc dot gnu.org
2020-11-17 17:33 ` tobias.weinzierl at durham dot ac.uk
2020-11-17 17:35 ` tobias.weinzierl at durham dot ac.uk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).