OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/51143 - Alias template allows class definition
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert5.C
1
// PR c++/50837
2
// { dg-options "-std=c++0x" }
3
4
template<class T>
5
struct z
6
{
7
static constexpr bool test_constexpr()
8
{
9
return true;
10
}
11
12
static void test()
13
{
14
static_assert(test_constexpr(), "test1");
15
}
16
};
17
18
int main()
19
{
20
z<int>::test();
21
}