repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
re PR c++/87080 (ice in cp_get_fndecl_from_callee, at cp/cvt.c:965)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wpessimizing-move5.C
blob
02ad2113505533bedfa45d22bcb5b12a9480804d
1
// PR c++/87080
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wpessimizing-move" }
4
5
struct a {
6
template<typename b> a &operator<<(b);
7
};
8
a c();
9
template<typename>
10
a fn2()
11
{
12
int d = 42;
13
return c() << d;
14
}