https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6
--- Comment #5 from Avi Kivity ---
Richard, may I send you the test case privately?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65942
--- Comment #14 from Avi Kivity ---
Please consider backporting this to 5.2.
Version: 5.1.1
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: a...@cloudius-systems.com
Target Milestone: ---
Given the source
template
void f(X... x, Y y
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67258
Avi Kivity changed:
What|Removed |Added
CC||a...@cloudius-systems.com
--- Comment #1
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: a...@cloudius-systems.com
Target Milestone: ---
Discriminated unions of class types are becoming popular; for example
std::variant<...> or std::future.
gcc doesn't optimize copies or moved of di
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77295
--- Comment #2 from Avi Kivity ---
Typically, the code is a template:
template
struct discriminated_union {
unsigned which;
union {
T v1;
U v2;
};
};
If either T or U have non-trivial copy/move constructors, then y
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77295
--- Comment #3 from Avi Kivity ---
If x->which is known then of course just that branch should be followed, and
the others eliminated. I'm talking about the case where it isn't known (very
common in my code).
101 - 107 of 107 matches
Mail list logo