Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot catch multiple definitions of shared constructor #615

Closed
tcak opened this issue May 29, 2015 · 4 comments
Closed

Cannot catch multiple definitions of shared constructor #615

tcak opened this issue May 29, 2015 · 4 comments

Comments

@tcak
Copy link

tcak commented May 29, 2015

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
Copy link

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
_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


Reply to this email directly or view it on GitHub
#615.

@aBothe
Copy link
Owner

aBothe commented May 29, 2015

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

@extrawurst
Copy link

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
#615 (comment).

@aBothe
Copy link
Owner

aBothe commented May 29, 2015

Everything that fits into a regex :P

@aBothe aBothe closed this as completed in 3839a4d May 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants