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
PR c++/6057
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
bracket4.C
1
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
template<typename T>
4
struct vector {
5
};
6
7
struct X {
8
template<typename T>
9
struct tmpl {
10
operator T() const;
11
};
12
};
13
14
template<typename T>
15
void g()
16
{
17
T::template tmpl<vector<int>>() + 2;
18
}
19
20
template<typename T>
21
void operator+(vector<T>, int);
22
23
void f()
24
{
25
vector<vector<int>>() + 2;
26
}
27
28
// PR c++/36460
29
template <class a>
30
class A {};
31
template <class b>
32
class B {};
33
34
A<B<void()>> x;
35