Thread overview
[Issue 16313] Duplicate symbol generated
Nov 25, 2016
Jorge Lima
Nov 01, 2017
RazvanN
Nov 01, 2017
Jorge Lima
Nov 02, 2017
RazvanN
November 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16313

--- Comment #1 from Jorge Lima <jmalima69@gmail.com> ---
Hello,

I tested the code snippet with dmd-2.072.0 under Linux64bit and the problem is gone (it was still present with dmd-2.071.2). Even though this bug report was never addressed. I will test it under windows and and MacOS asap and will update this report accordingly.

JLima

--
November 01, 2017
https://issues.dlang.org/show_bug.cgi?id=16313

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com
                 OS|Mac OS X                    |Windows

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Just tested on Windows with git HEAD and the issue is still present. On Ubuntu 16.04 the issue is not present. Changing description to Windows

--
November 01, 2017
https://issues.dlang.org/show_bug.cgi?id=16313

--- Comment #3 from Jorge Lima <jmalima69@gmail.com> ---
(In reply to RazvanN from comment #2)
> Just tested on Windows with git HEAD and the issue is still present. On Ubuntu 16.04 the issue is not present. Changing description to Windows

I tested before with release 2.072.0 and the problem was fixed. See my previous comment from 2016-11-25. However. at the time, I didn't check on all platforms Triggered by your comment, I tested now the release 2.076.1 on the following platforms

Ubuntu 16.04 64bit: passed
OS X 10.10: passed
Windows 10 64bit: failed but due to a different issue. See below.

> dmd snippet.d
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
teste.obj(teste)  Offset 00370H Record Type 009D
 Error 16: Index Range
Error: linker exited with status 1

I noticed OPTLINK is for Win32. Weird! So I passed the option -m64 to dmd to force it to use the microsoft linker.

> dmd -m64 snippet.d

And it compiled the snippet without errors.

So I would say this problem seems to be fixed!

--
November 02, 2017
https://issues.dlang.org/show_bug.cgi?id=16313

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> ---
(In reply to Jorge Lima from comment #3)
> (In reply to RazvanN from comment #2)
> > Just tested on Windows with git HEAD and the issue is still present. On Ubuntu 16.04 the issue is not present. Changing description to Windows
> 
> I tested before with release 2.072.0 and the problem was fixed. See my
> previous comment from 2016-11-25. However. at the time, I didn't check on
> all platforms
> Triggered by your comment, I tested now the release 2.076.1 on the following
> platforms
> 
> Ubuntu 16.04 64bit: passed
> OS X 10.10: passed
> Windows 10 64bit: failed but due to a different issue. See below.
> 
> > dmd snippet.d
> OPTLINK (R) for Win32  Release 8.00.17
> Copyright (C) Digital Mars 1989-2013  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> teste.obj(teste)  Offset 00370H Record Type 009D
>  Error 16: Index Range
> Error: linker exited with status 1
> 
> I noticed OPTLINK is for Win32. Weird! So I passed the option -m64 to dmd to force it to use the microsoft linker.
> 
> > dmd -m64 snippet.d
> 
> And it compiled the snippet without errors.
> 
> So I would say this problem seems to be fixed!

Cool! I had the same error weird error and I thought that was the issue. Thanks a lot. Closing as fixed

--