https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92224
--- Comment #3 from Mario Galindo <mariogalindoq at hotmail dot com> --- Thank you sir. As clang is allowing this type of construction, I believe now that the "bug" is in clang, not gcc. Regards. Dr. Ing. Mario Galindo Q. Cel: 591-72062746 & 591-72010422 On 25 Oct 2019 06:20, "redi at gcc dot gnu.org" <gcc-bugzi...@gcc.gnu.org> wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92224 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Also, set keys are *not* const, otherwise you wouldn't be able to assign one set to another set without reallocating every element. std::set<T>::iterator only gives you const *access* to the elements, but the elements themselves are not actually const. -- You are receiving this mail because: You are on the CC list for the bug. You reported the bug.