public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/96390] [OpenMP] Link errors on the offload side for C++ code with templates Date: Fri, 31 Jul 2020 14:52:20 +0000 [thread overview] Message-ID: <bug-96390-4-TSelO35u1l@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-96390-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96390 --- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- The following helps with the "S<0>::S()" problem – but then one runs into the "V<1>::V" problem. --- a/gcc/omp-offload.c +++ b/gcc/omp-offload.c @@ -207,6 +207,12 @@ omp_discover_declare_target_tgt_fn_r (tree *tp, int symtab_node *node = symtab_node::get (*tp); if (node != NULL) { + if (node->cpp_implicit_alias) + { + node = node->get_alias_target (); + DECL_ATTRIBUTES (node->decl) + = tree_cons (id, NULL_TREE, DECL_ATTRIBUTES (node->decl)); + } node->offloadable = 1; if (ENABLE_OFFLOADING) g->have_offload = true;
next prev parent reply other threads:[~2020-07-31 14:52 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-30 12:53 [Bug middle-end/96390] New: " burnus at gcc dot gnu.org 2020-07-30 13:02 ` [Bug middle-end/96390] " burnus at gcc dot gnu.org 2020-07-31 12:28 ` burnus at gcc dot gnu.org 2020-07-31 14:52 ` burnus at gcc dot gnu.org [this message] 2020-09-28 16:08 ` cvs-commit at gcc dot gnu.org 2020-09-28 16:44 ` burnus at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-96390-4-TSelO35u1l@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).