From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5916 invoked by alias); 26 Oct 2011 20:36:21 -0000 Received: (qmail 5763 invoked by uid 22791); 26 Oct 2011 20:36:19 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rcsinet15.oracle.com (HELO rcsinet15.oracle.com) (148.87.113.117) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Oct 2011 20:36:05 +0000 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p9QKa3Wr001207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 26 Oct 2011 20:36:04 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p9QKa2Jp017896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 Oct 2011 20:36:03 GMT Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p9QKZvmY030792; Wed, 26 Oct 2011 15:35:57 -0500 Received: from [192.168.1.4] (/79.51.11.135) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 26 Oct 2011 13:35:57 -0700 Message-ID: <4EA86F27.4020907@oracle.com> Date: Wed, 26 Oct 2011 21:16:00 -0000 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Jason Merrill CC: "gcc-patches@gcc.gnu.org" Subject: Re: [C++ Patch / RFC] PR 50864 References: <4EA867B7.7050406@oracle.com> <4EA86CD1.6090507@redhat.com> <4EA86DF0.7060709@oracle.com> In-Reply-To: <4EA86DF0.7060709@oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg02402.txt.bz2 On 10/26/2011 10:30 PM, Paolo Carlini wrote: > Hi, >> At a glance, it looks too early; it's valid to have >> namespace-qualified names after ->. >> >> namespace A >> { >> struct B >> { >> int i; >> }; >> }; >> >> A::B* b; >> int i = b->A::B::i; > I was also trying to construct such kind of example myself... but my > patch does not regress on the testcase you wrote down. I can tell you > exactly why, if you like.. We have that parser->scope is a RECORD_TYPE and postfix_expression is an INDIRECT_REF. Paolo.