]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/68810 (FAIL: g++.dg/cpp0x/constexpr-reinterpret1.C -- test for errors...
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Thu, 21 Jan 2016 20:29:33 +0000 (20:29 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Jan 2016 20:29:33 +0000 (21:29 +0100)
PR c++/68810
* g++.dg/cpp0x/constexpr-reinterpret1.C: Fix line number that is
expected to generate an error.

From-SVN: r232705

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C

index 4ec1b309202f3990880e2f0f79bc4b96dd1d2432..b5db7b6ff9a3eb9dbb71512d70aea693248132d9 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
+
+       PR c++/68810
+       * g++.dg/cpp0x/constexpr-reinterpret1.C: Fix line number that is                                                                           
+       expected to generate an error.                                                                                                             
+
 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
 
        PR middle-end/66178
index a5e3c1f109d0741506f5753657709042cb85d794..0ea42a0f98cbb4b96aa23560462744501869d0a9 100644 (file)
@@ -15,10 +15,8 @@ public:
   };
 
   constexpr static Inner & getInner()
-  {
-    /* I am surprised this is considered a constexpr */
-    return *((Inner *)4);
-  } // { dg-error "reinterpret_cast" "" }
+  /* I am surprised this is considered a constexpr */
+  { return *((Inner *)4); } // { dg-error "reinterpret_cast" "" }
 };
 
 B B::instance;