[PATCH] Fix typo in unordered_map deduction guide, missing "typename ="

Stephan Bergmann sbergman@redhat.com
Fri Nov 24 17:21:00 GMT 2017


Otherwise, at least recent Clang trunk with -std=gnu++17 complains

> In file included from lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0/functional:60:
> In file included from lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0/unordered_map:47:
> lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0/bits/unordered_map.h:1197:5: error: deduction guide template contains a template parameter that cannot be deduced
>     unordered_map(initializer_list<pair<_Key, _Tp>>, _Allocator)
>     ^
> lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0/bits/unordered_map.h:1196:34: note: non-deducible template parameter (anonymous)
>            _RequireAllocator<_Allocator>>
>                                         ^
> 1 error generated.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-typo-in-unordered_map-deduction-guide-missing-ty.patch
Type: text/x-patch
Size: 1762 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20171124/d16288a2/attachment.bin>


More information about the Gcc-patches mailing list