https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107800
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Amatul Adeeba from comment #6) > I mean even after trying the typo that is mentioned above, the error still > occurs. No it doesn't, it gives the correct error: 107800.cc: In function 'int main()': 107800.cc:5:8: error: 'to_address' is not a member of 'std' 5 | std::to_address(p); | ^~~~~~~~~~ 107800.cc:5:8: note: 'std::to_address' is only available from C++20 onwards N.B. after fixing the typo you need to remove gcc/cp/std-name-hint.* in the GCC source dir, so that those files are recreated from the csv file. If you don't do that, you won't get the fix.