Commit 0a76463f by Dominik Vogt Committed by Jakub Jelinek

re PR c++/68810 (FAIL: g++.dg/cpp0x/constexpr-reinterpret1.C -- test for errors -- -m32)

	PR c++/68810
	* g++.dg/cpp0x/constexpr-reinterpret1.C: Fix line number that is                                                                           
	expected to generate an error.

From-SVN: r232705
parent 7f5b3f48
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> 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
PR middle-end/66178 PR middle-end/66178
......
...@@ -15,10 +15,8 @@ public: ...@@ -15,10 +15,8 @@ public:
}; };
constexpr static Inner & getInner() constexpr static Inner & getInner()
{ /* I am surprised this is considered a constexpr */
/* I am surprised this is considered a constexpr */ { return *((Inner *)4); } // { dg-error "reinterpret_cast" "" }
return *((Inner *)4);
} // { dg-error "reinterpret_cast" "" }
}; };
B B::instance; B B::instance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment