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/0178-PR-c-48707.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/0178-PR-c-48707.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0178-PR-c-48707.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0178-PR-c-48707.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0178-PR-c-48707.patch new file mode 100644 index 0000000..64a53d2 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0178-PR-c-48707.patch @@ -0,0 +1,46 @@ +From c2606fe2aa58ae13a13e7ff0b17da61e4565586d Mon Sep 17 00:00:00 2001 +From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Mon, 25 Apr 2011 21:53:57 +0000 +Subject: [PATCH 178/200] PR c++/48707 + * pt.c (value_dependent_expression_p): Handle type-dependent + expression. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172942 138bc75d-0d04-0410-961f-82ee72b054a4 + +index ed48203..fc5177d 100644 +--- a/gcc/cp/pt.c ++++ b/gcc/cp/pt.c +@@ -18068,6 +18068,11 @@ value_dependent_expression_p (tree expression) + if (DECL_P (expression) && type_dependent_expression_p (expression)) + return true; + ++ /* We shouldn't have gotten here for a type-dependent expression, but ++ let's handle it properly anyway. */ ++ if (TREE_TYPE (expression) == NULL_TREE) ++ return true; ++ + switch (TREE_CODE (expression)) + { + case IDENTIFIER_NODE: +new file mode 100644 +index 0000000..25354b3 +--- /dev/null ++++ b/gcc/testsuite/g++.dg/cpp0x/regress/template-const2.C +@@ -0,0 +1,14 @@ ++// PR c++/48707 ++// { dg-options -std=c++0x } ++ ++struct A { ++ static int a(); ++}; ++ ++template<typename X> ++struct B: A { ++ static int const b; ++}; ++ ++template<typename X> ++int const B<X>::b=B<X>::a(); +-- +1.7.0.4 + |