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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-base5.C
blob
84700bccff76fe3fe5abafb2c5b2ef51336cc127
1
// PR c++/80829
2
// { dg-do compile { target c++11 } }
3
4
struct A {
5
constexpr A(int a) : _a(a) {}
6
int _a;
7
};
8
9
struct B : public A {
10
constexpr B(int a) : A(a) {}
11
};
12
13
int main() {
14
constexpr A a = B(10);
15
}