Re: [PATCH] Fix std::unordered_map key range insertion

2023-02-26 Thread François Dumont via Gcc-patches
Replying to my own questions. This use case is not valid from a Standard point of view. So not a bug and no need to deal with that before next stage 1. The question left is either we want to support it ? François On 23/02/23 22:14, François Dumont wrote: Hi Based on my work on PR 96088 for

[PATCH] Fix std::unordered_map key range insertion

2023-02-23 Thread François Dumont via Gcc-patches
Hi Based on my work on PR 96088 for std::map I imagine this use case of inserting a range of keys into an associative container. It behaves as operator[] by inserting a default value for each key. I wonder if the Standard says that it should work. Or maybe we want to support it ? I haven't