From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5582 invoked by alias); 1 Nov 2002 17:05:36 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 5561 invoked by uid 61); 1 Nov 2002 17:05:35 -0000 Date: Fri, 01 Nov 2002 09:05:00 -0000 Message-ID: <20021101170535.5560.qmail@sources.redhat.com> To: andyc@bluearc.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, andyc@bluearc.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/8424: initialising a pointer-to-member to an array element does not work X-SW-Source: 2002-11/txt/msg00031.txt.bz2 List-Id: Synopsis: initialising a pointer-to-member to an array element does not work State-Changed-From-To: open->closed State-Changed-By: bangerth State-Changed-When: Fri Nov 1 09:05:35 2002 State-Changed-Why: This is not a bug. Your testcase boils down to --------------------------- struct A { int b[2]; }; int (A::*v) = &A::b[0]; // is this valid? If not, why not? ------------------------------- The point is that A::b is not a member variable of type "int (B::*)", and one of its elements is not a member variable, but -- an element of a member variable. This is not supposed to work. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8424