This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50455] duplicate class/constructor silently accepted, wrong constructor linked
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Sep 2011 12:31:58 +0000
- Subject: [Bug c++/50455] duplicate class/constructor silently accepted, wrong constructor linked
- Auto-submitted: auto-generated
- References: <bug-50455-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50455
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-19 12:31:58 UTC ---
I'm pretty sure that this is one of those cases where the user violates the
ODR, thus undefined behavior, but diagnostics isn't required, exactly because
would have to produced at *link* time. You should search Bugzilla for closed
PRs having to do with violations of the One Definition Rule, there are
duplicates, for sure.