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