From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8920 invoked by alias); 8 Apr 2009 13:48:20 -0000 Received: (qmail 8684 invoked by uid 22791); 8 Apr 2009 13:48:18 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Apr 2009 13:48:09 +0000 Received: from zps78.corp.google.com (zps78.corp.google.com [172.25.146.78]) by smtp-out.google.com with ESMTP id n38Dm578016588; Wed, 8 Apr 2009 14:48:06 +0100 Received: from smtp.corp.google.com (spacemonkey1.corp.google.com [192.168.120.115]) by zps78.corp.google.com with ESMTP id n38Dm4TI020020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 8 Apr 2009 06:48:04 -0700 Received: from localhost.localdomain.google.com (67-218-104-63.cust.layer42.net [67.218.104.63] (may be forged)) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id n38Dm0LK007718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 8 Apr 2009 06:48:03 -0700 To: Fabio Tesser Cc: gcc-help@gcc.gnu.org Subject: Re: different friend functions behaviour References: <49DB7311.10208@gmail.com> <49DC70A4.6050705@gmail.com> From: Ian Lance Taylor Date: Wed, 08 Apr 2009 13:48:00 -0000 In-Reply-To: <49DC70A4.6050705@gmail.com> (Fabio Tesser's message of "Wed\, 08 Apr 2009 11\:38\:44 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00090.txt.bz2 Fabio Tesser writes: > The same code compiles without errors with gcc version 4.2.4. > In your opinion what is the correct behavior? I don't know the C++ standard well enough to know the correct answer. If you don't get an answer here, try asking on a C++ language group. Ian