From 3968f33b6542cf20cf63cf49bfbc033bd2486295 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 12 Jun 2011 20:56:57 -0700 Subject: 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 Signed-off-by: Khem Raj --- .../gcc-4_6-branch-backports/0340-PR-c-46145.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0340-PR-c-46145.patch (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0340-PR-c-46145.patch') diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0340-PR-c-46145.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0340-PR-c-46145.patch new file mode 100644 index 000000000..9fe99c7fc --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0340-PR-c-46145.patch @@ -0,0 +1,37 @@ +From 1f170608081cc8e7a2b1ef2954a5762a04c67af5 Mon Sep 17 00:00:00 2001 +From: jason +Date: Wed, 25 May 2011 20:30:01 +0000 +Subject: [PATCH] PR c++/46145 + * decl.c (grokdeclarator): Complain about auto typedef. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174235 138bc75d-0d04-0410-961f-82ee72b054a4 + +index dbf03f9..cc7a155 100644 +--- a/gcc/cp/decl.c ++++ b/gcc/cp/decl.c +@@ -9304,6 +9304,12 @@ grokdeclarator (const cp_declarator *declarator, + memfn_quals = TYPE_UNQUALIFIED; + } + ++ if (type_uses_auto (type)) ++ { ++ error ("typedef declared %"); ++ type = error_mark_node; ++ } ++ + if (decl_context == FIELD) + decl = build_lang_decl (TYPE_DECL, unqualified_id, type); + else +index 142ef90..190bfa6 100644 +--- a/gcc/testsuite/g++.dg/cpp0x/auto9.C ++++ b/gcc/testsuite/g++.dg/cpp0x/auto9.C +@@ -119,3 +119,6 @@ H h; // { dg-error "invalid" } + + void qq (auto); // { dg-error "auto" } + void qr (auto*); // { dg-error "auto" } ++ ++// PR c++/46145 ++typedef auto autot; // { dg-error "auto" } +-- +1.7.0.4 + -- cgit v1.2.3