diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-06-17 17:11:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-23 11:50:07 +0100 |
commit | 0faa5f72999fea82fadda8bab70abea2303216c7 (patch) | |
tree | 05a8c18d2f67d883f94d2bd6f060ab0f4ac7f156 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0028-PR-c-48313.patch | |
parent | c2007ba4cdb64fa9e308d3dae395c03ef4cc9161 (diff) | |
download | poky-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/0028-PR-c-48313.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0028-PR-c-48313.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0028-PR-c-48313.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0028-PR-c-48313.patch deleted file mode 100644 index 40471845d9..0000000000 --- a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0028-PR-c-48313.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | From 8d72f0bd42615d92c0db226238694eedb52914d3 Mon Sep 17 00:00:00 2001 | ||
2 | From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Tue, 29 Mar 2011 14:25:22 +0000 | ||
4 | Subject: [PATCH] PR c++/48313 | ||
5 | * pt.c (maybe_adjust_types_for_deduction): Handle T&& deduction | ||
6 | from overloaded function. | ||
7 | |||
8 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171669 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
9 | |||
10 | index 95b82ee..2e18588 100644 | ||
11 | --- a/gcc/cp/pt.c | ||
12 | +++ b/gcc/cp/pt.c | ||
13 | @@ -13936,7 +13936,10 @@ maybe_adjust_types_for_deduction (unification_kind_t strict, | ||
14 | && TYPE_REF_IS_RVALUE (*parm) | ||
15 | && TREE_CODE (TREE_TYPE (*parm)) == TEMPLATE_TYPE_PARM | ||
16 | && cp_type_quals (TREE_TYPE (*parm)) == TYPE_UNQUALIFIED | ||
17 | - && arg_expr && real_lvalue_p (arg_expr)) | ||
18 | + && (arg_expr ? real_lvalue_p (arg_expr) | ||
19 | + /* try_one_overload doesn't provide an arg_expr, but | ||
20 | + functions are always lvalues. */ | ||
21 | + : TREE_CODE (*arg) == FUNCTION_TYPE)) | ||
22 | *arg = build_reference_type (*arg); | ||
23 | |||
24 | /* [temp.deduct.call] | ||
25 | new file mode 100644 | ||
26 | index 0000000..160296f | ||
27 | --- /dev/null | ||
28 | +++ b/gcc/testsuite/g++.dg/cpp0x/rv-deduce2.C | ||
29 | @@ -0,0 +1,18 @@ | ||
30 | +// PR c++/48313 | ||
31 | +// { dg-options -std=c++0x } | ||
32 | + | ||
33 | +template<typename F> | ||
34 | +void f(F&&) { } | ||
35 | + | ||
36 | +void g() { } | ||
37 | + | ||
38 | +template<typename T> void h() { } | ||
39 | + | ||
40 | +int main() | ||
41 | +{ | ||
42 | + f( g ); // OK | ||
43 | + void (&p)() = h<int>; | ||
44 | + f( p ); // OK | ||
45 | + f( h<int> ); // ??? | ||
46 | +} | ||
47 | + | ||
48 | -- | ||
49 | 1.7.0.4 | ||
50 | |||