[Bug libstdc++/95200] user-defined hash function is not copied correctly if unordered_map is declared using an incomplete type

2020-05-19 Thread jevgenijsz1 at verifone dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95200 --- Comment #5 from jevgenijsz1 at verifone dot com --- Moreover if I was to put a breakpoint in struct hash I can see that it is being used 4 times in the code example posted: twice to hash the EnumType on insertion and twice on access (however

[Bug libstdc++/95200] user-defined hash function is not copied correctly if unordered_map is declared using an incomplete type

2020-05-19 Thread jevgenijsz1 at verifone dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95200 --- Comment #4 from jevgenijsz1 at verifone dot com --- Jonathan, Thank you for looking into this. I guess what confused me was copy assignment requirements in 26.2.7 that explicitly say hash function is copied and the hash function is available

[Bug libstdc++/95200] New: user-defined hash function is not copied correctly if unordered_map is declared using an incomplete type

2020-05-18 Thread jevgenijsz1 at verifone dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: jevgenijsz1 at verifone dot com Target Milestone: --- Created attachment 48558 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48