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
/
nontype13.C
blob
3250109aa4a66387153b80a3c1549c6e523f9774
1
// PR c++/19004
2
3
template<typename T>
4
struct Dummy
5
{
6
void evil()
7
{
8
this->template tester<true>();
9
}
10
11
template<bool B>
12
void tester()
13
{
14
bar<evil>()(); // { dg-error "constant|template|convert" }
15
}
16
template<bool B>
17
struct bar
18
{
19
void operator()()
20
{ }
21
};
22
};
23
24
int main()
25
{
26
Dummy<int> d;
27
d.tester<true> (); // { dg-message "required" }
28
}
29