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

2022-08-05 Thread Julian Lenz via Gcc
n std::array{{1}};     3 } Line 1 and 2 raise an error but only Line 2 comes with a note. Best, Julian On 05/08/2022 17:55, Jonathan Wakely wrote: 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

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-