aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Cannot catch multiple definitions of shared constructor #615

Closed tcak closed 9 years ago

tcak commented 9 years ago

In the module "com.abcdef.caterpil.target.templatefileresource", in class "PlaceHolderTemplate", by mistake, I have defined same shared constructor twice.

public this() shared{}

When I tried to compile it, error message was as follows and it wasn't handled. Is it possible to parse this error message for better error information?

dmd "@/tmp/tmp430df3b7.tmp" obj/Release/SampleTarget3.o: In function _D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6__ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate': /home/muser/dev/d/libraries/com/abcdef/stringutils/split.d:(.text._D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6__ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate+0x20): multiple definition of_D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6__ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate' obj/Release/SampleTarget3.o:/home/muser/dev/d/libraries/com/abcdef/stringutils/split.d:(.text._D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6__ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate+0x0): first defined here collect2: error: ld returned 1 exit status

extrawurst commented 9 years ago

thats a linker error and mono-d does not parse those (yet)

On Fri, May 29, 2015 at 3:26 PM, tcak notifications@github.com wrote:

In the module "com.abcdef.caterpil.target.templatefileresource", in class "PlaceHolderTemplate", by mistake, I have defined same shared constructor twice.

public this() shared{}

When I tried to compile it, error message was as follows and it wasn't handled. Is it possible to parse this error message for better error information?

dmd "@/tmp/tmp430df3b7.tmp" obj/Release/SampleTarget3.o: In function _D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate': /home/muser/dev/d/libraries/com/abcdef/stringutils/split.d:(.text._D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6__ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate+0x20): multiple definition of _D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate' obj/Release/SampleTarget3.o:/home/muser/dev/d/libraries/com/abcdef/stringutils/split.d:(.text._D3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate6__ctorMOFZOC3com6abcdef9caterpil36target20templatefileresource19PlaceHolderTemplate+0x0): first defined here collect2: error: ld returned 1 exit status

— Reply to this email directly or view it on GitHub https://github.com/aBothe/Mono-D/issues/615.

aBothe commented 9 years ago

Oh, thanks for the hint - yeah, ld errors aren't handled yet.

extrawurst commented 9 years ago

ld, optlink, u name it. sure you want to implement all their formats ? ;)

On Fri, May 29, 2015 at 3:39 PM, Alexander Bothe notifications@github.com wrote:

Oh, thanks for the hint - yeah, ld errors aren't handled yet.

— Reply to this email directly or view it on GitHub https://github.com/aBothe/Mono-D/issues/615#issuecomment-106804683.

aBothe commented 9 years ago

Everything that fits into a regex :P