From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16873 invoked by alias); 27 Jun 2012 17:37:11 -0000 Received: (qmail 16723 invoked by uid 22791); 27 Jun 2012 17:37:10 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jun 2012 17:36:57 +0000 From: "fabien at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51214] [4.7 Regression] [C++11] name lookup issue with c++11 enums Date: Wed, 27 Jun 2012 17:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: fabien at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fabien at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.2 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg01803.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51214 --- Comment #6 from fabien at gcc dot gnu.org 2012-06-27 17:36:56 UTC --- Author: fabien Date: Wed Jun 27 17:36:50 2012 New Revision: 189021 URL: http://gcc.gnu.org/viewcvs?root=3Dgcc&view=3Drev&rev=3D189021 Log: gcc/testsuite/ChangeLog 2012-06-27 Fabien Ch=C3=AAne PR c++/51214 * g++.dg/cpp0x/forw_enum11.C: New. gcc/cp/ChangeLog 2012-06-27 Fabien Ch=C3=AAne PR c++/51214 * cp-tree.h (insert_late_enum_def_into_classtype_sorted_fields): Declare. * class.c (insert_into_classtype_sorted_fields): New. (add_enum_fields_to_record_type): New. (count_fields): Adjust the comment. (add_fields_to_record_type): Likewise. (finish_struct_1): Move the code that inserts the fields for the sorted case, into insert_into_classtype_sorted_fields, and call it. (insert_late_enum_def_into_classtype_sorted_fields): Define. * decl.c (finish_enum_value_list): Call insert_late_enum_def_into_classtype_sorted_fields if a late enum definition is encountered. Added: branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/forw_enum11.C Modified: branches/gcc-4_7-branch/gcc/cp/ChangeLog branches/gcc-4_7-branch/gcc/cp/class.c branches/gcc-4_7-branch/gcc/cp/cp-tree.h branches/gcc-4_7-branch/gcc/cp/decl.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog