aboutsummaryrefslogtreecommitdiff
blob: f4ed7b3dffabe5760a2f951e74c3d2d03d3c136b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
https://bugs.webkit.org/show_bug.cgi?id=185194

Should fix webkit compilation (dispatch on enable_if)

From 57b9683f0ce55a410c567fcb2dc365a2cc848d6a Mon Sep 17 00:00:00 2001
From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon, 26 Feb 2018 06:09:07 +0000
Subject: [PATCH] 	PR c++/81589 - error with is_trivially_constructible.

	* method.c (constructible_expr): Set cp_unevaluated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@257981 138bc75d-0d04-0410-961f-82ee72b054a4
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 59ad43f73fe..a2d4c071efa 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -1165,6 +1165,7 @@ constructible_expr (tree to, tree from)
     {
       tree ctype = to;
       vec<tree, va_gc> *args = NULL;
+      cp_unevaluated cp_uneval_guard;
       if (TREE_CODE (to) != REFERENCE_TYPE)
 	to = cp_build_reference_type (to, /*rval*/false);
       tree ob = build_stub_object (to);