projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static10.C
1
// PR c++/55944
2
// { dg-options -std=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
}