From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13835 invoked by alias); 8 Sep 2002 19:06:01 -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 13817 invoked by uid 71); 8 Sep 2002 19:06:01 -0000 Date: Sun, 08 Sep 2002 12:06:00 -0000 Message-ID: <20020908190601.13816.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Andrew Pinski Subject: Re: c++/7858: g++ rejects legal code (regression from gcc 3.*) Reply-To: Andrew Pinski X-SW-Source: 2002-09/txt/msg00121.txt.bz2 List-Id: The following reply was made to PR c++/7858; it has been noted by GNATS. From: Andrew Pinski To: Peter Schmid Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/7858: g++ rejects legal code (regression from gcc 3.*) Date: Sun, 8 Sep 2002 15:05:00 -0400 I do not think this is valid code. To make it valid try: template inline binder1st<_Operation> bind1st(const _Operation& __fn, const typename _Operation::first_argument_type& __x) { return binder1st<_Operation>(__fn, __x); } The problem was that g++ before a week ago accepted invalid code in which you could take a pointer to a casted variable which is invalid. Thanks, Andrew Pinski