repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
access01.C
blob
3a7cee4156add525e286dbb10f01aad940b79acc
1
// PR c++/49042
2
// { dg-do compile { target c++11 } }
3
4
template <class T>
5
class A
6
{
7
T p;
8
public:
9
template <class U> auto f() -> decltype(+p) { return p; }
10
};
11
12
int main()
13
{
14
A<int>().f<int>();
15
}