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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1254915

Title:
  ICE with nested C++11 lambdas

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1254915/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to