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
/
constexpr-static6.C
blob
99e456985b61d20e7c7af25e2e8f39700380af4b
1
// { dg-do compile { target c++11 } }
2
3
struct B
4
{
5
constexpr operator int() const { return 4; }
6
};
7
8
template <int I>
9
struct C;
10
11
template<>
12
struct C<4> { typedef int TP; };
13
14
template <class T>
15
struct A
16
{
17
constexpr static B t = B();
18
C<t>::TP tp;
19
};
20
21
A<B> a;