From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14759 invoked by alias); 13 Sep 2011 23:16:06 -0000 Received: (qmail 14751 invoked by uid 22791); 13 Sep 2011 23:16:05 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Tue, 13 Sep 2011 23:15:51 +0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50365] [4.7 Regression] non-static data member error on valid code Date: Tue, 13 Sep 2011 23:57: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: howarth at nitro dot med.uc.edu X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: 2011-09/txt/msg00935.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50365 --- Comment #7 from Jack Howarth 2011-09-= 13 23:15:17 UTC --- At r176120 which fixed PR49691, the test case from Comment 4, begins to fai= l in the current mode... [MacPro:~] howarth% /Users/howarth/dist/bin/g++ -c test.cc test.cc: In constructor =E2=80=98XplorSimulation::XplorSimulation()=E2=80= =99: test.cc:17:26: error: cannot call member function =E2=80=98XplorVars* XplorSimulation::xplorVars()=E2=80=99 without object r176120 | jason | 2011-07-10 10:24:03 -0400 (Sun, 10 Jul 2011) | 5 lines PR c++/49691 * parser.c (cp_parser_late_return_type_opt): Check quals parameter rather than current_class_type to determine whether to set 'this'. (cp_parser_direct_declarator): Pass -1 to quals if member_p is fals= e. (cp_parser_init_declarator): Pass down member_p.