]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-ctor5.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ctor5.C
CommitLineData
0e5dcad1 1// PR c++/46877
4b2e63de 2// { dg-do compile { target c++11 } }
0e5dcad1
JM
3
4struct new_allocator
5{
6 constexpr new_allocator ();
7};
8
9struct string
10{
11 constexpr string ()
12 {
13 }
14 new_allocator a;
15};
16
17struct pair
18{
19 const string first;
20 constexpr pair ()
21 {
22 }
23};
24
25constexpr
26new_allocator::new_allocator ()
27{
28}
29
30pair p;
This page took 6.29476 seconds and 5 git commands to generate.