This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39513] class defined in file scope got linked by other files
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Mar 2009 20:56:10 -0000
- Subject: [Bug c++/39513] class defined in file scope got linked by other files
- References: <bug-39513-15718@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-03-20 20:56 -------
This is hard to detect really because of inlining differences between
translational units.
See http://en.wikipedia.org/wiki/One_Definition_Rule
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39513