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

fix Issue 15257 - __traits(compiles, …) with malformed inline asm silently ends compilation #5244

Closed
wants to merge 6 commits into from

Conversation

Cauterite
Copy link
Contributor

https://issues.dlang.org/show_bug.cgi?id=15257

make iasm errors not end compilation
dirty hack which works for me

@Cauterite
Copy link
Contributor Author

Looks like there's one particular test ( fail152.d ) which relies on the incorrect DMD output from before this patch. Not sure what to do in this situation (apart from fix the test of course).

@Cauterite Cauterite changed the title fix Issue 15257 Issue 15257 Oct 30, 2015
@CyberShadow
Copy link
Member

apart from fix the test of course

Yes.

@CyberShadow CyberShadow changed the title Issue 15257 fix Issue 15257 - __traits(compiles, …) with malformed inline asm silently ends compilation Oct 30, 2015
@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15257 __traits(compiles, …) with malformed inline asm silently ends compilation

@Cauterite
Copy link
Contributor Author

It might be worth merging this patch as a temporary workaround, since it seems like a clean solution would involve significant refactoring. Unless someone else thinks they're up to the task.

@WalterBright
Copy link
Member

dirty hack

I'd rather not. None of the rest of dmd uses exceptions, I don't think we should start now.

make iasm errors not end compilation
dirty hack which works for me
(test suite fully passed on my system)
because manual error propagation is so much fun
@@ -1,7 +1,7 @@

/*
* Copyright (c) 1992-1999 by Symantec
* Copyright (c) 1999-2016 by Digital Mars
* Copyright (c) 1999-2013 by Digital Mars
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh? back to the past? ;-)

@Cauterite
Copy link
Contributor Author

Will open a new pull fixing both the iasm issues i had pulls open for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants