This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50455] duplicate class/constructor silently accepted, wrong constructor linked


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]