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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr18969-2.C
blob
e0b0c1bf9d44a58bc86699146174c494bf544a85
1
// PR c++/18969
2
// { dg-do compile { target c++14 } }
3
4
template <typename T>
5
struct A
6
{
7
auto *f1 () { return; } // { dg-error "return-statement" }
8
auto &f2 () { return; } // { dg-error "return-statement" }
9
10
auto f3 () { return; } // { dg-bogus "return-statement" }
11
};