This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25915] use ODR rules to make C++ objects not be TREE_PUBLIC
- From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2006 20:44:15 -0000
- Subject: [Bug c++/25915] use ODR rules to make C++ objects not be TREE_PUBLIC
- References: <bug-25915-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from geoffk at gcc dot gnu dot org 2006-06-21 20:44 -------
Hi Andrew,
I'm not sure what diagnostic you're talking about. If you violate the ODR and
define myclass in a different TU, with a different definition for myclass::foo,
you will typically get no diagnostic; just inconsistent behaviour.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25915