+2019-06-05 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from mainline
+ 2019-05-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/90598
+ * tree.c (lvalue_kind): Return clk_none for expressions with
+ with VOID_TYPE_P.
+
2019-05-28 Marek Polacek <polacek@redhat.com>
Backported from mainline
if (ref == current_class_ptr)
return clk_none;
+ /* Expressions with cv void type are prvalues. */
+ if (TREE_TYPE (ref) && VOID_TYPE_P (TREE_TYPE (ref)))
+ return clk_none;
+
switch (TREE_CODE (ref))
{
case SAVE_EXPR:
+2019-06-05 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from mainline
+ 2019-05-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/90598
+ * g++.dg/cpp0x/pr90598.C: New test.
+
2019-05-30 Iain Sandoe <iain@sandoe.co.uk>
Backport from mainline.
--- /dev/null
+// PR c++/90598
+// { dg-do compile { target c++11 } }
+
+struct A {};
+using B = decltype(A ().~A ());
+template <typename T> struct C;
+template <> struct C<void> {};
+C<B> t;
+2019-06-05 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from mainline
+ 2019-05-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/90598
+ 2019-05-02 Jonathan Wakely <jwakely@redhat.com>
+
+ * testsuite/experimental/propagate_const/requirements2.cc: Adjust
+ dg-error.
+
2019-06-03 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/90700
using std::experimental::propagate_const;
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
-// { dg-error "not a pointer-to-object type" "" { target *-*-* } 66 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 187 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 213 }
-
propagate_const<void*> test1;
+
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 0 }
+// { dg-prune-output "forming pointer to reference type" }
+// { dg-prune-output "not a pointer-to-object type" }