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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static10.C
blob
e908fb3cb6b91e98364d539d7f783726b279933a
1
// PR c++/55944
2
// { dg-do compile { target c++11 } }
3
4
template<class T>
5
struct Test
6
{
7
constexpr Test(T val) : value(val) {}
8
static void test()
9
{
10
static constexpr Test<int> x(42); // ICE
11
}
12
T value;
13
};
14
15
int main()
16
{
17
static constexpr Test<int> x(42); // OK
18
Test<double>::test();
19
}