https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70796
Jason Turner changed:
What|Removed |Added
CC||lefticus at gmail dot com
--- Comment #1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70792
--- Comment #2 from Jason Turner ---
Follow up, this is a better test case that does not pass by &&
struct MyType {
MyType(int i, int j, int k, int l)
: sum(i + j + k + l)
{
}
int sum;
};
int main()
{
int i = 0;
std::cout <<
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70792
--- Comment #1 from Jason Turner ---
Note: I tested this code further and the compiler seems to be generating
incorrect code based on this standard, not just warning incorrectly.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lefticus at gmail dot com
Target Milestone: ---
The following code:
#include
struct Do_Call
{
template
Do_Call(const Func &f, T && ... t)
{
f(std::forward(t)...);