[Bug c++/92986] ODR violation not detected
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 18 17:33:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92986
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
We could in theory save the tokens of each method and compare them, but it
would be quite costly.
Normally people don't cut'n'paste classes between TUs, but rather just declare
them once in a header they include multiple times, so it is certainly not a
common scenario.
More information about the Gcc-bugs
mailing list