gcc-11-20220805 is now available

2022-08-05 Thread GCC Administrator via Gcc
Snapshot gcc-11-20220805 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20220805/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 11 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: Reason for missing notes for incomplete-type errors in standard headers

2022-08-05 Thread Julian Lenz via Gcc
Hi Jonathan, Thanks for the quick answer. No, it doesn't for the simplest possible case:     #include     int main() { std::array arr; }; But admittedly that would have been a surprise to me as I usually compile with -Wall -Wextra -Werror. But I tried to replace `` with `` in yet another c

Re: Reason for missing notes for incomplete-type errors in standard headers

2022-08-05 Thread Jonathan Wakely via Gcc
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

Reason for missing notes for incomplete-type errors in standard headers

2022-08-05 Thread Julian Lenz via Gcc
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? Full: Recently, I forgot to include but had included. Due to this recent commit for gcc12 https://github.com/gcc-