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++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-delegating.C
blob
f32dde60eae70ae0822f9e9912239ae6833d3115
1
// PR c++/51526
2
// { dg-do compile { target c++11 } }
3
4
const int j = 42;
5
6
struct S {
7
int i;
8
constexpr S(int i) : i(i) {}
9
constexpr S() : S(j) {}
10
};
11
12
constexpr S s{};
13
14
#define SA(X) static_assert((X),#X)
15
SA(s.i == 42);