Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/constexpr-ctor19.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/70229 // { dg-do compile { target c++11 } } template <class> class S { constexpr S (void) { typedef int T; } }; template <class> class S2 { constexpr S2 (void) { ; } }; template <class> class S3 { constexpr S3 (void) { typedef enum { X } E; } // { dg-error "does not have empty body" "" { target c++11_only } } }; template <class> class S4 { constexpr S4 (void) { typedef struct { int j; } U; } // { dg-error "does not have empty body" "" { target c++11_only } } }; struct V { int i; }; template <class> class S5 { constexpr S5 (void) { typedef V W; } };