delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/14/20:03:09

From: "Paul Derbyshire" <pderbysh AT usa DOT net>
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
Message-ID: <XDSY.1342$d63.1159714@news21.bellglobal.com>
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

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<char> 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<char>, 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019