From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68672 invoked by alias); 10 Jun 2016 20:48:12 -0000 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 Received: (qmail 68638 invoked by uid 89); 10 Jun 2016 20:48:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: userp1040.oracle.com Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 10 Jun 2016 20:48:04 +0000 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5AKm19K002464 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Jun 2016 20:48:02 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u5AKm12R011715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Jun 2016 20:48:01 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u5AKlwku009955; Fri, 10 Jun 2016 20:48:00 GMT Received: from [192.168.1.4] (/79.37.237.234) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Jun 2016 13:47:58 -0700 Subject: Re: [C++ RFC / Patch] Again about PR 70202 To: Jason Merrill References: <5759A0FB.2050703@oracle.com> <5759FBC7.5080503@oracle.com> <575A1B49.1040702@oracle.com> <575B2372.6020806@oracle.com> <575B2431.4030904@oracle.com> Cc: "gcc-patches@gcc.gnu.org" From: Paolo Carlini Message-ID: <575B277C.7020806@oracle.com> Date: Fri, 10 Jun 2016 20:48:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <575B2431.4030904@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00857.txt.bz2 .. if I disregard that comment, the incomplete type B gets through, gets to check_initializer (which is involved anyway even if there is no initializer in this case for b1) and somewhat comically gets to: else if (!COMPLETE_TYPE_P (type)) { error_at (DECL_SOURCE_LOCATION (decl), "%q#D has incomplete type", decl); TREE_TYPE (decl) = error_mark_node; return NULL_TREE; } thus we get a duplicate diagnostic about incompleteness and the type is turned into error_mark_node anyway ;) Paolo.