https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78383

            Bug ID: 78383
           Summary: label as values ICE with C++ lambda
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: SztfG at yandex dot ru
  Target Milestone: ---

testcase:

int main()
{
        auto f = [](void* ptr) { goto *ptr; };

        f(&&label);

label:
        return 0;
}

$ g++ -std=c++11 -O2 test.cpp 
test.cpp: In function ‘main()::<lambda(void*)>’:
test.cpp:3:23: internal compiler error: Segmentation fault
  auto f = [](void* ptr) { goto *ptr; };
                       ^

Reply via email to