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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static11.C
blob
91cc25a71c359d2233438aaa5af7b52e2cfda23f
1
// PR c++/54532
2
// { dg-do compile { target c++11 } }
3
4
#define SA(X) static_assert(X,#X)
5
6
struct A {
7
int i;
8
constexpr static int A::*p = &A::i;
9
};
10
11
constexpr A a = { 42 };
12
SA(a.*A::p == 42);
13
14
constexpr int A::* A::p;