[Bug 1254915] [NEW] ICE with nested C++11 lambdas
Benjamin Kietzman
bengilgit at gmail.com
Mon Nov 25 23:47:28 UTC 2013
Public bug reported:
Using gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
on Ubuntu 12.04.3 LTS
$ uname -a
Linux kenpachi 3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 09:20:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ g++ -std=c++0x accgen.cpp -o accgen
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report, ...
//accgen.cpp:
template<typename Inc>
void test(Inc i) {
}
int main() {
auto foo=[](int& n){return [&](int i){return n+=i;};};
int n=0;
test(foo(n));
return 0;
}
** Affects: gcc-4.6 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1254915
Title:
ICE with nested C++11 lambdas
Status in “gcc-4.6” package in Ubuntu:
New
Bug description:
Using gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
on Ubuntu 12.04.3 LTS
$ uname -a
Linux kenpachi 3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 09:20:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ g++ -std=c++0x accgen.cpp -o accgen
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report, ...
//accgen.cpp:
template<typename Inc>
void test(Inc i) {
}
int main() {
auto foo=[](int& n){return [&](int i){return n+=i;};};
int n=0;
test(foo(n));
return 0;
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1254915/+subscriptions
More information about the foundations-bugs
mailing list