This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84502] Argument corruption when passing empty templated struct
- From: "patrick.schlangen at bmw dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Feb 2018 16:33:33 +0000
- Subject: [Bug c++/84502] Argument corruption when passing empty templated struct
- Auto-submitted: auto-generated
- References: <bug-84502-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84502
--- Comment #1 from patrick.schlangen at bmw dot de ---
Note: This problem does not happen with gcc 7.2.1.
The problem can also be reproduced with -O3 when the empty struct object passed
to the function is actually used in the function. (So it is not optimized out.)