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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-default1.C
blob
68d50b61b1206e5f540e743f2ad128843c561b47
1
// PR c++/53464
2
// { dg-do compile { target c++11 } }
3
4
template <int value>
5
struct bar
6
{
7
static constexpr int get()
8
{
9
return value;
10
}
11
};
12
13
template <typename A, int value = A::get()>
14
struct foo
15
{
16
};
17
18
int main()
19
{
20
typedef foo<bar<0>> type;
21
return 0;
22
}