diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-30 12:37:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-05 12:26:41 +0100 |
commit | 478deec11f3349d61b1a922f047dc958dc07262a (patch) | |
tree | 1843907b36de2bcb8f821d49d8c9a88014ef0dc7 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0195-Fix-PR-c-48656.patch | |
parent | d42dccf886983ba14ccc868041d7bea0cf1a260e (diff) | |
download | ast2050-yocto-poky-478deec11f3349d61b1a922f047dc958dc07262a.zip ast2050-yocto-poky-478deec11f3349d61b1a922f047dc958dc07262a.tar.gz |
gcc-4.6.0: Backport FSF 4.6 branch patches
This is set of bugfixes that has been done on
FSF gcc-4_2-branch since 4.6.0 was released
They will roll into 4.6.1 release once that
happens in coming approx 6 months time then
we can simply remove them thats the reason
so use a separate .inc file to define the
SRC_URI additions
(From OE-Core rev: b0d5b9f12adbce2c4a0df6059f5671188cd32293)
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/0195-Fix-PR-c-48656.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0195-Fix-PR-c-48656.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0195-Fix-PR-c-48656.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0195-Fix-PR-c-48656.patch new file mode 100644 index 0000000..b1603c8 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0195-Fix-PR-c-48656.patch @@ -0,0 +1,58 @@ +From 5d622f64eff4e9fa78356c24290aed131b5c519c Mon Sep 17 00:00:00 2001 +From: dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Thu, 28 Apr 2011 19:46:34 +0000 +Subject: [PATCH 195/200] Fix PR c++/48656 + +gcc/cp/ + + * semantics.c (finish_call_expr): Don't forget BASELINK nodes when + considering call expressions involving a member function. + +gcc/testsuite/ + + * gcc/testsuite/g++.dg/template/inherit7.C: New test case. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173131 138bc75d-0d04-0410-961f-82ee72b054a4 + +index 0d80771..b5c0b80 100644 +--- a/gcc/cp/semantics.c ++++ b/gcc/cp/semantics.c +@@ -2041,7 +2041,8 @@ finish_call_expr (tree fn, VEC(tree,gc) **args, bool disallow_virtual, + is not included in *ARGS even though it is considered to + be part of the list of arguments. Note that this is + related to CWG issues 515 and 1005. */ +- || ((TREE_CODE (TREE_TYPE (fn)) == METHOD_TYPE) ++ || (((TREE_CODE (TREE_TYPE (fn)) == METHOD_TYPE) ++ || BASELINK_P (fn)) + && current_class_ref + && type_dependent_expression_p (current_class_ref))) + { +new file mode 100644 +index 0000000..67afbca +--- /dev/null ++++ b/gcc/testsuite/g++.dg/template/inherit7.C +@@ -0,0 +1,21 @@ ++// Origin: PR c++/48656 ++// { dg-options "-std=c++0x" } ++// { dg-do compile } ++ ++struct A { ++ int f(); ++ int f(int); ++}; ++ ++template <typename> struct B : A ++{ ++}; ++ ++template <typename T> struct C : B<T> ++{ ++ void ++ g() ++ { ++ A::f(); ++ } ++}; +-- +1.7.0.4 + |