public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "yuantang at csail dot mit.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63142] New: gcc-cilk can not spawn a function template Date: Tue, 02 Sep 2014 16:13:00 -0000 [thread overview] Message-ID: <bug-63142-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63142 Bug ID: 63142 Summary: gcc-cilk can not spawn a function template Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yuantang at csail dot mit.edu Created attachment 33437 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33437&action=edit testbench to illustrate the bug I have a following gcc (cilk branch) installed on my system. My OS is Ubuntu 14.04. $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/home/yuantang/tool_src/gcc-cilk/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-cilk-src/configure --prefix=/home/yuantang/tool_src/gcc-cilk --enable-languages=c,c++,fortran : (reconfigured) ../gcc-cilk-src/configure --prefix=/home/yuantang/tool_src/gcc-cilk --enable-languages=c,c++,fortran --disable-multilib Thread model: posix gcc version 4.9.0 20130520 (experimental) (GCC) It looks like the cilk_spawn can not spawn a function template. It can spawn any normal function but not function template, but icc and llvm-cilk can. I compiled the attached testbench as follows: $ gcc -o fib -fcilkplus -lcilkrts fib.cpp /usr/bin/ld: /tmp/ccpNfrZC.o: undefined reference to symbol '__cxa_rethrow@@CXXABI_1.3' /usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Best! -Yuan
next reply other threads:[~2014-09-02 16:13 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-09-02 16:13 yuantang at csail dot mit.edu [this message] 2014-09-02 16:16 ` [Bug c++/63142] " pinskia at gcc dot gnu.org 2014-09-17 14:44 ` paolo.carlini at oracle dot com
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-63142-4@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).