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
Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor18.C
blob
fa4ff7cc75ef4a39e18d507b05c18d89167a51bd
1
// PR c++/64994
2
// { dg-do compile { target c++11 } }
3
4
class TimeStamp {
5
public:
6
constexpr TimeStamp() : mValue() {}
7
int mValue;
8
};
9
10
class A {
11
class B;
12
A(bool);
13
};
14
class C {
15
TimeStamp mFadeBeginTime;
16
};
17
class A::B {
18
public:
19
B(int) {}
20
TimeStamp mPrevEventTime[1];
21
};
22
23
A::A(bool) {
24
new C;
25
B(0);
26
}