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
libstdc++: fix uses of explicit object parameter [PR116038]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-ice8.C
blob
00078d53b7b75a1efbb03d0fb964e5da05ae2fcd
1
// PR c++/51422
2
// { dg-do compile { target c++11 } }
3
4
template<typename> struct A {};
5
6
void foo()
7
{
8
[i] { A<decltype(i)>(); }; // { dg-error "not declared|invalid" }
9
[i] { A<decltype(i)>(); }; // { dg-error "invalid" }
10
}