public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pedro dot lamarao at mndfck dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/35147] New: ICE trying to expand an argument pack with zero arguments Date: Sat, 09 Feb 2008 16:05:00 -0000 [thread overview] Message-ID: <bug-35147-10881@http.gcc.gnu.org/bugzilla/> (raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1918 bytes --] [pedro.lamarao@localhost Projetos]$ g++-4.3 -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../mainline/configure --prefix=/opt/gcc-4.3 --enable-languages=c,c++ : (reconfigured) : (reconfigured) ../mainline/configure --prefix=/opt/gcc-4.3 --enable-languages=c,c++ --no-create --no-recursion : (reconfigured) ../mainline/configure --prefix=/opt/gcc-4.3 --enable-languages=c,c++ --no-create --no-recursion Thread model: posix gcc version 4.3.0 20080208 (experimental) (GCC) [pedro.lamarao@localhost src]$ cat -n test_01.cpp 1 #include <functional> 2 3 using namespace std; 4 5 void 6 j () { } 7 8 void 9 h (int i) { } 10 11 template <typename Callable, typename... Args> 12 void 13 g (Callable c, Args&&... args) { 14 function<void ()> callable = bind(h, forward<Args...>(args...)); 15 callable(); 16 } 17 18 void 19 f () { 20 g(h, 0); 21 g(j); 22 } [pedro.lamarao@localhost src]$ g++-4.3 --std=c++0x test_01.cpp test_01.cpp: In function âvoid g(Callable, Args&& ...) [with Callable = void (*)(), Args = ]â: test_01.cpp:21: instantiated from here test_01.cpp:14: internal compiler error: tree check: accessed elt 1 of tree_vec with 0 elts in get_innermost_template_args, at cp/pt.c:515 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: ICE trying to expand an argument pack with zero arguments Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pedro dot lamarao at mndfck dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35147
next reply other threads:[~2008-02-09 16:05 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-02-09 16:05 pedro dot lamarao at mndfck dot org [this message] 2008-02-14 21:39 ` [Bug c++/35147] " dgregor at gcc dot gnu dot org 2008-12-02 17:58 ` jason at gcc dot gnu dot org 2008-12-29 7:39 ` pinskia at gcc dot gnu dot org 2009-02-06 12:51 ` paolo dot carlini at oracle dot com 2009-02-07 2:05 ` paolo at gcc dot gnu dot org 2009-02-07 2:08 ` paolo dot 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-35147-10881@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).