Re: c/10875: There is no multiple symbol definition error or warning for global symbols

[email protected]
Newsgroups gmane.comp.gcc.prs,gmane.comp.gcc.bugs
Message-ID <[email protected]>
Synopsis: There is no multiple symbol definition error or warning for global symbols

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon May 19 22:10:33 2003
State-Changed-Why:
    The code is not legal, but the standard says that no
    diagnostic is required.
    
    If you want to complain anywhere, do so with the binutils
    guys. They maintain the linker. Most frequently, though,
    the answer will probably be "Don't do it". The reason
    being that the linker will usually warn you if a symbol
    has different size, but "int" and "int*" often have the
    same size, and then the linker can't really do anything
    about it.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10875
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.