This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67650] undef reference with -fdevirtualize
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 May 2018 11:53:25 +0000
- Subject: [Bug c++/67650] undef reference with -fdevirtualize
- Auto-submitted: auto-generated
- References: <bug-67650-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67650
--- Comment #20 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Vincent from comment #5)
> The problem is static time, not dynamic time.
> This artefact is just a result of source code reduction. In my code there
> is no "0", and the problem exists.
Are you sure about that? Using your original testcase I can only reproduce the
link error when it has ((T*)0)->ax()