PR c++/67853
* g++.dg/cpp0x/decltype72.C: New test.
From-SVN: r273652
+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>
* gcc.target/or1k/ror-4.c: New file.
--- /dev/null
+// 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, "");