This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49672] New: Internal error when passing variadic template args to a lambda function
- From: "sydius at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 8 Jul 2011 05:34:47 +0000
- Subject: [Bug c++/49672] New: Internal error when passing variadic template args to a lambda function
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49672
Summary: Internal error when passing variadic template args to
a lambda function
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: sydius@gmail.com
Created attachment 24709
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24709
The intermediate file that generates the error
I realize what I did is dumb and almost certainly not valid, but it told me to
submit a bug report, so I am.
gcc -v -save-temps --std=c++0x bug.cpp
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.6.1/configure
Thread model: posix
gcc version 4.6.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-mtune=generic'
'-march=x86-64'
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/cc1plus -E -quiet -v
-D_GNU_SOURCE bug.cpp -mtune=generic -march=x86-64 -std=c++0x -fpch-preprocess
-o bug.ii
ignoring nonexistent directory
"/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/x86_64-unknown-linux-gnu
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/backward
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/include
/usr/local/include
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-mtune=generic'
'-march=x86-64'
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/cc1plus -fpreprocessed
bug.ii -quiet -dumpbase bug.cpp -mtune=generic -march=x86-64 -auxbase bug
-std=c++0x -version -o bug.s
GNU C++ (GCC) version 4.6.1 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.1, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.6.1 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.1, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: a73a15445c32b7c162be6fcb15e626bd
bug.cpp: In lambda function:
bug.cpp:4:6: instantiated from âfoo(int) [with Args = {}]::<lambda(int)>â
bug.cpp:4:5: instantiated from âvoid foo(int) [with Args = {}]â
bug.cpp:11:10: instantiated from here
bug.cpp:5:9: internal compiler error: in tsubst_copy, at cp/pt.c:11305
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.