internal compiler error: in tsubst_copy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Invalid
|
Medium
|
|||
gcc-4.7 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
lsb_release -rd:
Description: Ubuntu 12.04 LTS
Release: 12.04
gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.7.0 (Ubuntu/Linaro 4.7.0-7ubuntu3)
Command:
g++ -DTEST_
exp/joris/
/home/XXX/
/home/XXX/
Source:
#include <functional>
template <typename TVal>
class TFoo {
public:
TFoo(const std::function<bool (const TVal &, const TVal &)> &func = [](const TVal &lhs, const TVal &rhs){return lhs < rhs;}) {}
};
int main() {
TFoo<int> foo;
}
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in gcc: | |
status: | Confirmed → Invalid |
$ g++ -std=c++0x -o test.bin testcase.cpp //usr/share/ doc/gcc- 4.6/README. Bugs> for instructions.
test.cpp: In member function ‘void Foo::dostuff(T, U) [with T = Bar, U = bool(Arg*)]’:
test.cpp:21:17: internal compiler error: in tsubst_copy, at cp/pt.c:11333
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
$ g++ -v LTO_WRAPPER= /usr/lib/ gcc/x86_ 64-linux- gnu/4.6. 1/lto-wrapper pkgversion= 'Ubuntu/ Linaro 4.6.1-9ubuntu3' --with- bugurl= file:// /usr/share/ doc/gcc- 4.6/README. Bugs --enable- languages= c,c++,fortran, objc,obj- c++,go --prefix=/usr --program- suffix= -4.6 --enable-shared --enable- linker- build-id --with-system-zlib --libexecdir= /usr/lib --without- included- gettext --enable- threads= posix --with- gxx-include- dir=/usr/ include/ c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable- clocale= gnu --enable- libstdcxx- debug --enable- libstdcxx- time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable- checking= release --build= x86_64- linux-gnu --host= x86_64- linux-gnu --target= x86_64- linux-gnu
Using built-in specs.
COLLECT_GCC=g++
COLLECT_
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)