Commit 33c43069 by Marek Polacek Committed by Marek Polacek

re PR c++/67853 (decltype of parenthesized xvalue does not correctly yield rvalue-reference)

	PR c++/67853
	* g++.dg/cpp0x/decltype72.C: New test.

From-SVN: r273652
parent 575ce893
2019-07-21 Marek Polacek <polacek@redhat.com>
PR c++/67853
* g++.dg/cpp0x/decltype72.C: New test.
2019-07-22 Stafford Horne <shorne@gmail.com> 2019-07-22 Stafford Horne <shorne@gmail.com>
* gcc.target/or1k/ror-4.c: New file. * gcc.target/or1k/ror-4.c: New file.
......
// PR c++/67853
// { dg-do compile { target c++11 } }
template<typename T, typename U>
struct is_same
{
static const bool value = false;
};
template<typename T>
struct is_same<T, T>
{
static const bool value = true;
};
struct Member {};
struct A { Member x; };
A MakeA();
static_assert(is_same<decltype((MakeA().x)), Member&&>::value, "");
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