diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0408-semantics.c-potential_constant_expression_1-Handle-d.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0408-semantics.c-potential_constant_expression_1-Handle-d.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0408-semantics.c-potential_constant_expression_1-Handle-d.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0408-semantics.c-potential_constant_expression_1-Handle-d.patch new file mode 100644 index 0000000000..0c23053d9f --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0408-semantics.c-potential_constant_expression_1-Handle-d.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 8c66e45c90175c237c15b91b6fc5b9097f257c08 Mon Sep 17 00:00:00 2001 | ||
2 | From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Fri, 10 Jun 2011 04:23:26 +0000 | ||
4 | Subject: [PATCH] * semantics.c (potential_constant_expression_1): Handle destructor | ||
5 | call. | ||
6 | |||
7 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174887 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
8 | |||
9 | index 5cb8f49..7e62b61 100644 | ||
10 | --- a/gcc/cp/semantics.c | ||
11 | +++ b/gcc/cp/semantics.c | ||
12 | @@ -7703,6 +7703,12 @@ potential_constant_expression_1 (tree t, bool want_rval, tsubst_flags_t flags) | ||
13 | want_rval = true; | ||
14 | goto binary; | ||
15 | |||
16 | + case BIT_NOT_EXPR: | ||
17 | + /* A destructor. */ | ||
18 | + if (TYPE_P (TREE_OPERAND (t, 0))) | ||
19 | + return true; | ||
20 | + /* else fall through. */ | ||
21 | + | ||
22 | case REALPART_EXPR: | ||
23 | case IMAGPART_EXPR: | ||
24 | case CONJ_EXPR: | ||
25 | @@ -7711,7 +7717,6 @@ potential_constant_expression_1 (tree t, bool want_rval, tsubst_flags_t flags) | ||
26 | case FLOAT_EXPR: | ||
27 | case NEGATE_EXPR: | ||
28 | case ABS_EXPR: | ||
29 | - case BIT_NOT_EXPR: | ||
30 | case TRUTH_NOT_EXPR: | ||
31 | case FIXED_CONVERT_EXPR: | ||
32 | case UNARY_PLUS_EXPR: | ||
33 | -- | ||
34 | 1.7.0.4 | ||
35 | |||