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
/
pr51199.C
blob
e56b2549efaab303fdbdcd0216b604700e99217d
1
// PR c++/51199
2
3
typedef void FC() const;
4
5
template<class T>
6
struct add_ref {
7
typedef T& type; // { dg-error "forming reference" }
8
};
9
10
typedef add_ref<FC>::type ref_type;
11
12
template<class T>
13
struct add_ptr {
14
typedef T* type; // { dg-error "forming pointer" }
15
};
16
17
typedef add_ptr<FC>::type ptr_type;