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
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
defarg16.C
blob
ba78bfbd5a33c3c51f722e5ebb0adbd4633be421
1
// PR c++/55127
2
3
struct some_class
4
{
5
static const bool is_valid_type = true;
6
};
7
8
template< typename Type
9
, bool Valid = Type::is_valid_type
10
>
11
struct wrapper;
12
13
template< typename Type >
14
struct wrapper< Type, true >
15
{
16
typedef Type type;
17
};
18
19
template< typename T >
20
void fun()
21
{
22
wrapper<some_class>::type x;
23
}
24
25
int main()
26
{
27
fun<int>();
28
}