From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19904 invoked by alias); 9 Jul 2012 16:05:03 -0000 Received: (qmail 19836 invoked by uid 22791); 9 Jul 2012 16:05:00 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Jul 2012 16:04:44 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q69G4hRN002899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Jul 2012 12:04:43 -0400 Received: from [10.3.113.116] (ovpn-113-116.phx2.redhat.com [10.3.113.116]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q69G4gDT026599; Mon, 9 Jul 2012 12:04:42 -0400 Message-ID: <4FFB0119.1080500@redhat.com> Date: Mon, 09 Jul 2012 16:05:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Paolo Carlini CC: "gcc-patches@gcc.gnu.org" Subject: Re: [C++ RFC / Patch] PR 51213 ("access control under SFINAE") References: <4FDB4640.3050502@oracle.com> <4FF1FAE4.5010505@redhat.com> In-Reply-To: <4FF1FAE4.5010505@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 2012-07/txt/msg00338.txt.bz2 On 07/02/2012 09:47 PM, Jason Merrill wrote: >> FAIL: g++.dg/template/friend13.C -std=c++11 (test for excess errors) OK, the problem here is that we need to look up Outer::Inner in order to generate the declaration of foo, and we can't check whether foo is a friend of Outer until after we've completed the declaration. deduction_tsubst_fntype tries to deal with this by pushing into the scope of the function template, but that doesn't help if only a specialization (or, in friend15, partial instantiation) is a friend. I'll work on this some more. Jason