[Bug c++/82565] [7/8 Regression] Concept and lambda return type deduction cause compilation to crash with "mmap: Cannot allocate memory"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82565 --- Comment #4 from Jason Merrill --- Author: jason Date: Tue Mar 13 20:22:31 2018 New Revision: 258502 URL: https://gcc.gnu.org/viewcvs?rev=258502=gcc=rev Log: PR c++/82565 - ICE with concepts and generic lambda. * pt.c (instantiate_decl): Clear fn_context for lambdas. Added: trunk/gcc/testsuite/g++.dg/concepts/lambda1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c
[Bug c++/82565] [7/8 Regression] Concept and lambda return type deduction cause compilation to crash with "mmap: Cannot allocate memory"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82565 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org, ||jason at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Started to ICE with r249323, before it was accepted.
[Bug c++/82565] [7/8 Regression] Concept and lambda return type deduction cause compilation to crash with "mmap: Cannot allocate memory"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82565 Richard Biener changed: What|Removed |Added Target Milestone|7.3 |7.4 --- Comment #2 from Richard Biener --- GCC 7.3 is being released, adjusting target milestone.
[Bug c++/82565] [7/8 Regression] Concept and lambda return type deduction cause compilation to crash with "mmap: Cannot allocate memory"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82565 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Target Milestone|--- |7.3
[Bug c++/82565] [7/8 Regression] Concept and lambda return type deduction cause compilation to crash with "mmap: Cannot allocate memory"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82565 Jonathan Wakely changed: What|Removed |Added Keywords||ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed||2017-11-01 Known to work||7.1.0 Summary|Concept and lambda return |[7/8 Regression] Concept |type deduction cause|and lambda return type |compilation to crash with |deduction cause compilation |"mmap: Cannot allocate |to crash with "mmap: Cannot |memory" |allocate memory" Ever confirmed|0 |1 Known to fail||7.2.0, 8.0 --- Comment #1 from Jonathan Wakely --- Trunk gives a seemingly bogus error before the ICE: mozilla_jwakely0/crash.cpp: In instantiation of ‘run_test()::[with auto:1 = const std::__cxx11::basic_string]’: mozilla_jwakely0/crash.cpp:9:12: required from here mozilla_jwakely0/crash.cpp:49:47: error: use of parameter from containing function return object.visit([] (auto& x) { return x.empty(); }); ^ mozilla_jwakely0/crash.cpp:49:35: note: ‘const std::__cxx11::basic_string& x’ declared here return object.visit([] (auto& x) { return x.empty(); }); ~~^ mozilla_jwakely0/crash.cpp:49:58: internal compiler error: Segmentation fault return object.visit([] (auto& x) { return x.empty(); }); ^