Commit d05b516e by Jakub Jelinek

re PR c++/90598 (Return type of explicit destructor call wrong)

	PR c++/90598
	* tree.c (lvalue_kind): Return clk_none for expressions with
	with VOID_TYPE_P.

	* g++.dg/cpp0x/pr90598.C: New test.

From-SVN: r271783
parent 01b3b9e3
......@@ -6,11 +6,3 @@ using B = decltype(A ().~A ());
template <typename T> struct C;
template <> struct C<void> {};
C<B> t;
// 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;
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