summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0113-Fix-PR-c-48574.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-04-30 12:37:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-05 12:26:41 +0100
commit478deec11f3349d61b1a922f047dc958dc07262a (patch)
tree1843907b36de2bcb8f821d49d8c9a88014ef0dc7 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0113-Fix-PR-c-48574.patch
parentd42dccf886983ba14ccc868041d7bea0cf1a260e (diff)
downloadpoky-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/0113-Fix-PR-c-48574.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0113-Fix-PR-c-48574.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0113-Fix-PR-c-48574.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0113-Fix-PR-c-48574.patch
new file mode 100644
index 0000000000..75b3fba378
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0113-Fix-PR-c-48574.patch
@@ -0,0 +1,57 @@
1From a236530cd5ac2466b1ca3b510b6bdb493c7b5342 Mon Sep 17 00:00:00 2001
2From: dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Wed, 13 Apr 2011 15:19:40 +0000
4Subject: [PATCH 113/200] Fix PR c++/48574
5
6gcc/cp/
7
8 * class.c (fixed_type_or_null): We cannot determine the dynamic
9 type of a reference variable if its initializer is dependent.
10
11gcc/testsuite/
12
13 * g++.dg/template/dependent-expr7.C: New test case.
14
15git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172376 138bc75d-0d04-0410-961f-82ee72b054a4
16
17index 42066c3..d19610a 100644
18--- a/gcc/cp/class.c
19+++ b/gcc/cp/class.c
20@@ -5937,6 +5937,7 @@ fixed_type_or_null (tree instance, int *nonnull, int *cdtorp)
21 itself. */
22 if (TREE_CODE (instance) == VAR_DECL
23 && DECL_INITIAL (instance)
24+ && !type_dependent_expression_p (DECL_INITIAL (instance))
25 && !htab_find (ht, instance))
26 {
27 tree type;
28new file mode 100644
29index 0000000..b246820
30--- /dev/null
31+++ b/gcc/testsuite/g++.dg/template/dependent-expr7.C
32@@ -0,0 +1,22 @@
33+// Origin PR c++/48574
34+// { dg-do compile }
35+
36+struct A
37+{
38+ virtual void foo();
39+};
40+
41+template <typename T>
42+void
43+bar(T x)
44+{
45+ A &b = *x;
46+ b.foo ();
47+}
48+
49+void
50+foo()
51+{
52+ A a;
53+ bar(&a);
54+}
55--
561.7.0.4
57