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
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
conv-tmpl6.C
blob
2df3a6cc12957f1f897014b177bac0c3e7ae9373
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
constexpr A(int) { }
6
constexpr operator int() const { return 1; };
7
};
8
9
template <class T, int N>
10
struct B
11
{
12
static constexpr A a = A(N);
13
int ar[a];
14
};
15
16
B<int, 10> b;