From: "Paul Derbyshire" Newsgroups: comp.os.msdos.djgpp Subject: ld 2.8.1 does not remove duplicate template instantiations Lines: 30 Organization: The Chaos Zone MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 14 Apr 1998 23:51:19 GMT NNTP-Posting-Host: 206.172.182.145 NNTP-Posting-Date: Tue, 14 Apr 1998 19:51:19 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk REPOST: some f*cker forged an article cancel!!! Gnu ld 2.8.1, contrary to all the documentation, is not removing duplicate template instantiations. In a project that uses rope in two source files it complains about multiple definitions. Worse, if I use -fno-implicit-templates and add a source file that explicitly instantiates rope, I get complaints about undefined rope-related symbols. I would like these bugs corrected: 1. The linker not performing as advertised. All linkers should always remove duplicate template instantiations and duplicate instantiated inline methods. 2. G++ evidently not instantiating a template properly when you use the instantiation syntax described in the docs along with -fno-implicit-templates. I would also like any and all trigger-happy despammers, newsgroup vandals, or people who feel the need to pretend gnu tools never have bugs, to refrain from forging a cancel to this article this time. -- .*. "Clouds are not spheres, mountains are not cones, coastlines are not -() < circles, and bark is not smooth, nor does lightning travel in a `*' straight line." ------------------------------------------------ -- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca ______________________ ____|_____________ pderbysh AT usa DOT net Programmer & Humanist | ICQ: 10423848 | http://chat.carleton.ca/~pderbysh