From ec9b6d061b8495b9316ae90e5a71a499ef2873ee 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 (From OE-Core rev: 3968f33b6542cf20cf63cf49bfbc033bd2486295) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- .../gcc-4_6-branch-backports/0360-PR-c-47277.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0360-PR-c-47277.patch (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0360-PR-c-47277.patch') diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0360-PR-c-47277.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0360-PR-c-47277.patch new file mode 100644 index 0000000000..0881d83552 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0360-PR-c-47277.patch @@ -0,0 +1,38 @@ +From 631b8035922a95739c34b650b88a139a8f16474a Mon Sep 17 00:00:00 2001 +From: jason +Date: Fri, 27 May 2011 20:48:24 +0000 +Subject: [PATCH] PR c++/47277 + * parser.c (cp_parser_unqualified_id): Don't check + constructor_name_p for enums. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174363 138bc75d-0d04-0410-961f-82ee72b054a4 + +index 4d6ddcc..bc2b5bd 100644 +--- a/gcc/cp/parser.c ++++ b/gcc/cp/parser.c +@@ -4320,7 +4320,8 @@ cp_parser_unqualified_id (cp_parser* parser, + && (cp_lexer_peek_nth_token (parser->lexer, 2)->type + != CPP_LESS) + && (token->u.value == TYPE_IDENTIFIER (scope) +- || constructor_name_p (token->u.value, scope))) ++ || (CLASS_TYPE_P (scope) ++ && constructor_name_p (token->u.value, scope)))) + { + cp_lexer_consume_token (parser->lexer); + return build_nt (BIT_NOT_EXPR, scope); +new file mode 100644 +index 0000000..5575ca6 +--- /dev/null ++++ b/gcc/testsuite/g++.dg/cpp0x/enum18.C +@@ -0,0 +1,8 @@ ++// PR c++/47277 ++// { dg-options -std=c++0x } ++ ++int main(void) { ++ enum e {}; ++ e ev; ++ ev.e::~e_u(); // { dg-error "" } ++} +-- +1.7.0.4 + -- cgit v1.2.3-54-g00ecf