OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
error3.C
1
// PR c++/47336
2
// { dg-options -std=c++0x }
3
4
template <typename T>
5
void g(T t)
6
{
7
t+1; // { dg-error "no match" }
8
}
9
10
template <typename S>
11
class C
12
{
13
struct D {} d;
14
public:
15
decltype(g(d)) h()
16
{
17
return g(d);
18
}
19
};
20
21
int main()
22
{
23
C<int>().h();
24
}