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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr14888.C
blob
e5c56aaabf2bb4e0746b434680340d8440d73368
1
// PR target/14888
2
// This used to ICE because the truncdfsf2 isn't completely eliminated
3
4
// { dg-do compile }
5
// { dg-options "-O2 -ffast-math" }
6
7
class xcomplex
8
{
9
public:
10
float re, im;
11
12
xcomplex &operator*= (const float &fact)
13
{ re*=fact; im*=fact; return *this; }
14
};
15
16
void foo (xcomplex &almT, xcomplex &almG)
17
{
18
double gb;
19
almT*=gb;
20
almG*=gb*42;
21
}
22