[Bug c++/69977] internal compiler error: Segmentation fault when using generic lambdas

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 26 11:47:00 GMT 2016


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);
      ^~~~~~


More information about the Gcc-bugs mailing list