[Bug target/79364] some variadic functions with an empty struct miscompiled with C++ (at least for x64 targets)

2017-02-12 Thread xilun0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79364 --- Comment #4 from Guillaume Knispel --- The dup seems to be 69846 This might also be vaguely related to 52154

[Bug target/79364] some variadic functions with an empty struct miscompiled with C++ (at least for x64 targets)

2017-02-03 Thread xilun0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79364 --- Comment #2 from Guillaume Knispel --- Note: I hit that bug after cleaning some real code after a cppcheck static analysis. The original code sometimes had "..." after references, which is technically forbidden (but seems to work with g++,

[Bug c++/79364] New: some variadic functions miscompiled (at least for x64 targets)

2017-02-03 Thread xilun0 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: xilun0 at gmail dot com Target Milestone: --- Hello, G++ miscompiles the following program at least for x64, at least from gcc 4.7 to 7.0 20170115 Compiling with or without O2 changes