https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Ahmad Nour from comment #7)
> (In reply to Andrew Pinski from comment #3)
> > (In reply to Ahmad Nour from comment #2)
> > > 
> > > Thanks for confirmation.
> > > I tried with clang-12 -Wall -Wextra main.cpp, but I didn't get that
> > > hint/note. Am I missing something?
> > 
> > Oh I tried with -std=c++20 which provided that note.  Sorry about that. But
> > it might be the case that adding this for -std=c++17 might be hard ...
> 
> Hmmmmm this is what I'm getting with c++20. I can't find that note where it
> points to line #13
> 
> >> clang-12 -Wall -Wextra main.cpp -std=c++20

well clang-12 was released 2 years ago ... I am trying to say that clang
already fixed this case for -std=c++20 in a newer clang version and GCC should
fix this too, that is what PR 109551 is about.  Note compiler developers tend
to try to the trunk (mainline) sources of each compiler to see if what other
compilers do and don't really look into older releases of the other compiler to
see when it was added especially when it comes to diagnostic improvments.

Reply via email to