repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
re PR c++/61135 (It seems to be not able to call virtual method of literal object...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-ice18.C
blob
83e8ae049d8d41003733677d0b05a9fd359185a5
1
// PR c++/61135
2
// { dg-do compile { target c++11 } }
3
4
struct Base
5
{
6
virtual int b() const{return 1;};
7
};
8
9
struct Super:Base{};
10
11
int main()
12
{
13
constexpr Super s = Super();
14
[&]{s.b();}();
15
}