This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32549] Wrong template instance resolution among multiple object files.
- From: "opichals at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2007 15:05:21 -0000
- Subject: [Bug c++/32549] Wrong template instance resolution among multiple object files.
- References: <bug-32549-14781@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from opichals at seznam dot cz 2007-06-30 15:05 -------
I am not sure about the standard wording. But logically typedefs local
to a .cpp file should stay local to that file. They in fact are. However
the template instances are not.
If it should not be that way then the compiler should complain about such
conflicts in some way not to get the two confused at runtime. Especially in
huge application merges this is very critical.
note: I am sorry, will be out of reach for the next few weeks to discuss in
detail. I would appreciate any pointers or more detailed explanations you could
provide.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32549