The attached patch fixes a test failure caused by expecting the
error message for the wrong line.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany
gcc/testsuite/ChangeLog

        * g++.dg/cpp0x/constexpr-reinterpret1.C: Fix line number that is
        expected to generate an error.
>From 7405de336d2e22e68d39fdfc2c1520ea0c3cc91a Mon Sep 17 00:00:00 2001
From: Dominik Vogt <v...@linux.vnet.ibm.com>
Date: Mon, 11 Jan 2016 12:26:56 +0100
Subject: [PATCH] Fix line number that is expected to generate an error.

---
 gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C
index a5e3c1f1..0ea42a0 100644
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C
@@ -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;
-- 
2.3.0

Reply via email to