https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112838
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (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 ...