This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68738] call to overridden function segfaults
- From: "rianquinn at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Dec 2015 17:32:14 +0000
- Subject: [Bug c++/68738] call to overridden function segfaults
- Auto-submitted: auto-generated
- References: <bug-68738-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68738
--- Comment #2 from Rian Quinn <rianquinn at gmail dot com> ---
Yeah.... I'm am pretty sure it is specific to TARGET=elf-x86_64 (i.e. no OS
specified). When I ran the same test on Ubuntu's native GCC it ran fine.
objdump showed pretty different assembly for the Ubuntu case, vs. the
cross-compiled case. For the code that does not crash (using the reference
instead of the pointer) the code is identical.