This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69977] internal compiler error: Segmentation fault when using generic lambdas
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Feb 2016 11:47:43 +0000
- Subject: [Bug c++/69977] internal compiler error: Segmentation fault when using generic lambdas
- Auto-submitted: auto-generated
- References: <bug-69977-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69977
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid,
| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-02-26
Known to work| |6.0
Ever confirmed|0 |1
Known to fail| |5.3.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed on the GCC 5 branch, trunk rejects the testcase:
> ./cc1plus -quiet t.ii -std=c++14
t.ii: In instantiation of âA::publicMethod()::<lambda(auto:1)> [with auto:1 =
int]â:
t.ii:9:33: required by substitution of âtemplate<class auto:1>
A::publicMethod()::<lambda(auto:1)>::operator decltype
(((A::publicMethod()::<lambda(auto:1)>)0u).operator()(static_cast<const
auto:1>(<anonymous>))) (*)(auto:1)() const [with auto:1 = int]â
t.ii:12:11: required from here
t.ii:10:6: error: cannot call member function âvoid A::method(int)â without
object
method(k);
^~~~~~