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-ctor21.C
blob
4bf57b9e8976b78098ed4280326316dfea7efefd
1
// PR c++/83835
2
// { dg-do compile { target c++11 } }
3
4
struct Z
5
{
6
void const * p_;
7
constexpr Z( void const * p ): p_( p ) {}
8
~Z();
9
};
10
11
struct Y
12
{
13
Z z_;
14
constexpr Y() noexcept: z_( this ) {}
15
};