Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice15.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
3 | 3 |
4 class A | 4 class A |
5 { | 5 { |
6 void foo () | 6 void foo () |
7 { | 7 { |
8 [=] { return foo; }; // { dg-error "invalid use of member function" } | 8 [=] { return foo; }; // { dg-error "cannot convert" } |
9 } | |
10 void bar () const; | |
11 void bar () | |
12 { | |
13 [=] { return bar; }; // { dg-error "unable to deduce" } | |
9 } | 14 } |
10 }; | 15 }; |