summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0029-PR-c-47999.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-06-17 17:11:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-23 11:50:07 +0100
commit0faa5f72999fea82fadda8bab70abea2303216c7 (patch)
tree05a8c18d2f67d883f94d2bd6f060ab0f4ac7f156 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0029-PR-c-47999.patch
parentc2007ba4cdb64fa9e308d3dae395c03ef4cc9161 (diff)
downloadpoky-0faa5f72999fea82fadda8bab70abea2303216c7.tar.gz
gcc-4.6: Switch to using svn SRC_URI for recipe
We call the recipes 4.6 Remove the backport patches (From OE-Core rev: 68b545f4ff719f2b6e57d68b002dc9845c7a14ae) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0029-PR-c-47999.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0029-PR-c-47999.patch57
1 files changed, 0 insertions, 57 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0029-PR-c-47999.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0029-PR-c-47999.patch
deleted file mode 100644
index 796240237c..0000000000
--- a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0029-PR-c-47999.patch
+++ /dev/null
@@ -1,57 +0,0 @@
1From d1f71a5193dd2b3debd551f3dc0e0d237acf7e81 Mon Sep 17 00:00:00 2001
2From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Tue, 29 Mar 2011 14:25:37 +0000
4Subject: [PATCH] PR c++/47999
5 * semantics.c (finish_call_expr): Preserve reference semantics
6 in templates.
7
8git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171670 138bc75d-0d04-0410-961f-82ee72b054a4
9
10index 3213483..23bb021 100644
11--- a/gcc/cp/semantics.c
12+++ b/gcc/cp/semantics.c
13@@ -2150,11 +2150,14 @@ finish_call_expr (tree fn, VEC(tree,gc) **args, bool disallow_virtual,
14 /* A call where the function is unknown. */
15 result = cp_build_function_call_vec (fn, args, complain);
16
17- if (processing_template_decl)
18+ if (processing_template_decl && result != error_mark_node)
19 {
20+ if (TREE_CODE (result) == INDIRECT_REF)
21+ result = TREE_OPERAND (result, 0);
22 result = build_call_vec (TREE_TYPE (result), orig_fn, orig_args);
23 KOENIG_LOOKUP_P (result) = koenig_p;
24 release_tree_vector (orig_args);
25+ result = convert_from_reference (result);
26 }
27
28 return result;
29new file mode 100644
30index 0000000..66630e5
31--- /dev/null
32+++ b/gcc/testsuite/g++.dg/cpp0x/auto22.C
33@@ -0,0 +1,21 @@
34+// PR c++/47999
35+// { dg-options -std=c++0x }
36+
37+int& identity(int& i)
38+{
39+ return i;
40+}
41+
42+// In a function template, auto type deduction works incorrectly.
43+template <typename = void>
44+void f()
45+{
46+ int i = 0;
47+ auto&& x = identity(i); // Type of x should be `int&`, but it is `int&&`.
48+}
49+
50+int main (int argc, char* argv[])
51+{
52+ f();
53+ return 0;
54+}
55--
561.7.0.4
57