repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: ICE in gfc_conv_expr_present w. defined assignment [PR118640]
[gcc.git]
/
libstdc++-v3
/
testsuite
/
23_containers
/
unordered_set
/
insert
/
117686.cc
blob
3baac16c2b472e84f2df35222847092f638b7941
1
// { dg-do compile { target c++11 } }
2
// Bug 117686 - error in unordered_set::emplace
3
4
#include <unordered_set>
5
#include <utility>
6
7
struct
H
{
8
std
::
size_t
operator
()(
const
std
::
pair
<
int
,
int
>&)
const
{
return
0
; }
9
};
10
11
void
12
test_117686
()
13
{
14
std
::
unordered_set
<
std
::
pair
<
int
,
int
>,
H
>
s
;
15
s
.
emplace
(
1
,
2
);
16
}