From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32061 invoked by alias); 30 Jun 2007 15:05:29 -0000 Received: (qmail 32046 invoked by uid 48); 30 Jun 2007 15:05:21 -0000 Date: Sat, 30 Jun 2007 15:05:00 -0000 Message-ID: <20070630150521.32045.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/32549] Wrong template instance resolution among multiple object files. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "opichals at seznam dot cz" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-06/txt/msg02930.txt.bz2 ------- 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