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-base2.C
blob
217687a3fb3e5d6364cf935dc669761a88834a8f
1
// PR c++/46293
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
};
7
8
struct C
9
{
10
int i;
11
constexpr C(int i): i(i) {}
12
};
13
14
struct B: A, C
15
{
16
constexpr B(): A(), C(42) { }
17
};
18
19
constexpr B b{};