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
ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
dr1391-2.C
blob
1af71f0d33309c1f4cf3fe7b1e90214ad06eb7bc
1
// DR 1391
2
// { dg-do compile { target c++11 } }
3
4
template<class T>
5
struct A {
6
typename T::N n;
7
};
8
9
template<class T>
10
struct B { };
11
12
template <class T, class... U>
13
typename A<T>::value_t bar(int, T, U...);
14
15
template <class T>
16
T bar(T, T);
17
18
void baz()
19
{
20
B<char> b;
21
bar(b, b);
22
}