summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-06-12 20:56:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-14 15:29:15 +0100
commitec9b6d061b8495b9316ae90e5a71a499ef2873ee (patch)
treedc922c9ddd98f937eb2095b07f6c3b5043e3a491 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch
parentfbc60cc5ba2284bfcaea8c82001a49b7795cc2a2 (diff)
downloadpoky-ec9b6d061b8495b9316ae90e5a71a499ef2873ee.tar.gz
gcc-4.6.0: Bring in patches from FSF 4.6 branch
This brings in new patches from 4.6 release branch updates the comment section of existing branch to not contain patch numbers. Tested build on qemu for arm ppc mips x86 and x86_64 (From OE-Core rev: 3968f33b6542cf20cf63cf49bfbc033bd2486295) 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/0359-PR-c-48284.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch
new file mode 100644
index 0000000000..2fd1843d51
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch
@@ -0,0 +1,40 @@
1From a726d4116cb23c1f9873f3309c1c078d2113726d Mon Sep 17 00:00:00 2001
2From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Fri, 27 May 2011 20:48:17 +0000
4Subject: [PATCH] PR c++/48284
5 * error.c (dump_expr) [COMPONENT_REF]: Use pp_cxx_dot
6 with INDIRECT_REF of REFERENCE_TYPE.
7
8git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174362 138bc75d-0d04-0410-961f-82ee72b054a4
9
10index dffc764..931e24d 100644
11--- a/gcc/cp/error.c
12+++ b/gcc/cp/error.c
13@@ -1879,7 +1879,10 @@ dump_expr (tree t, int flags)
14 && strcmp (IDENTIFIER_POINTER (DECL_NAME (ob)), "this")))
15 {
16 dump_expr (ob, flags | TFF_EXPR_IN_PARENS);
17- pp_cxx_arrow (cxx_pp);
18+ if (TREE_CODE (TREE_TYPE (ob)) == REFERENCE_TYPE)
19+ pp_cxx_dot (cxx_pp);
20+ else
21+ pp_cxx_arrow (cxx_pp);
22 }
23 }
24 else
25new file mode 100644
26index 0000000..3515652
27--- /dev/null
28+++ b/gcc/testsuite/g++.dg/cpp0x/error6.C
29@@ -0,0 +1,8 @@
30+// PR c++/48284
31+// { dg-options -std=c++0x }
32+
33+template<typename C>
34+auto g(C& c) -> decltype (c.f()) { return c.f(); } // { dg-error "decltype .c\\.f" }
35+
36+template<typename C>
37+auto g(C& c) -> decltype (c.f()) { return c.f(); } // { dg-error "decltype .c\\.f" }
38--
391.7.0.4
40