[EMAIL PROTECTED] 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)
[EMAIL PROTECTED] 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 } [EMAIL PROTECTED] 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