Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C Thu Oct 25 07:37:49 2018 +0900 @@ -4,8 +4,8 @@ int i; -// The following is accepted due to bug 49171. -constexpr void *q = reinterpret_cast<void*>(&i); // { dg-error "" "bug c++/49171" { xfail *-*-* } } +// The following was accepted due to bug 49171. +constexpr void *q = reinterpret_cast<void*>(&i); // { dg-error "not a constant expression" } constexpr void *r0 = reinterpret_cast<void*>(1); // { dg-error "not a constant expression|reinterpret_cast from integer to pointer" } constexpr void *r1 = reinterpret_cast<void*>(sizeof 'x'); // { dg-error ".reinterpret_cast<void\\*>\\(1\[ul\]\*\\). is not a constant expression" } @@ -21,4 +21,4 @@ #endif } -constexpr bool b = f<int>(); // { dg-error "not a constant expression" } +constexpr bool b = f<int>(); // { dg-error "not a constant expression|in .constexpr. expansion of " }