From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id C5EAE3857B9A for ; Fri, 5 Aug 2022 16:55:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C5EAE3857B9A Received: by mail-ej1-x62f.google.com with SMTP id dc19so5962598ejb.12 for ; Fri, 05 Aug 2022 09:55:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p0hZclfRrm0+L+iJyUkUm5rsijZ4JcxwMAie5EwaPFs=; b=eWU87lf8g6PFQ+n7GpQufbOhPsRsXLkzxKChzxPhMgCBcG8zVjks8WAXldBhagrhRI 70W9Ae+DsqMyZLAOaM2/ug4F6tDSbAPGHoLugJCABm+8b7g7LRtMDmACJlTrJWSaDqlr hACGNpX9X42GZbWmLR3WXdtYqril0XGTh+RD5db0TFLVCx+zKaT57aRWrZjDsR0pt3OI /ojExFq6S0BdRTYmkF/rERgUiYPp66oAngi3X+R/fdx36IWnyPYKiALgDEthWoMVYpur Med9PyKKRT3WqkYJi5OXw526tpIktIj3RLLJlbam5wG+48XX96a0v+vKxtGp0YIDYAxr nk+A== X-Gm-Message-State: ACgBeo2iCkwm95oBZd04vmu6vq4sxVZeLGMUj88F2/GxhXHvtfF9MfkE GtSW1DdbzaxAXlx6NUQswPsycxGIUoWfe1dQToA= X-Google-Smtp-Source: AA6agR6GD2c9Y8hGIFB1R3f8q529iWCI1N8qaozEuc3JI9+/nsH6zh8Mkp4CgJxT8DL8sxA/bbEsTQJHFayhrGRZ4Is= X-Received: by 2002:a17:907:6930:b0:730:f00f:7ad2 with SMTP id rb48-20020a170907693000b00730f00f7ad2mr3054492ejc.389.1659718551086; Fri, 05 Aug 2022 09:55:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Fri, 5 Aug 2022 17:55:39 +0100 Message-ID: Subject: Re: Reason for missing notes for incomplete-type errors in standard headers To: Julian Lenz Cc: "gcc@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 16:55:53 -0000 On Fri, 5 Aug 2022 at 17:39, Julian Lenz via Gcc wrote: > > Hi everybody, > > TL;DR: > > What is the reason that `error: '' has incomplete type` does > not give a note about where the forward declaration happened for > standard library classes? Probably because the declaration happens in a system header. Does -Wsystem-headers change it?