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

Issue 11375 - [profile+nothrow] Semantic 'no throw' error with -profile switch #2765

Merged
merged 1 commit into from Nov 16, 2013

Conversation

yebblies
Copy link
Member

The check for throwing is run before adding the implicit super call, so D.__ctor is inferred as nothrow.

https://d.puremagic.com/issues/show_bug.cgi?id=11375

TEST_OUTPUT:
---
fail_compilation/fail11375.d(17): Error: constructor this is not nothrow
fail_compilation/fail10254.d(15): Error: function 'D main' is nothrow yet may throw
Copy link
Contributor

Choose a reason for hiding this comment

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

s/fail10254.d/fail10375.d/

Copy link
Member Author

Choose a reason for hiding this comment

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

Urrgh I keep doing that.

9rnsr added a commit that referenced this pull request Nov 16, 2013
Issue 11375 - [profile+nothrow] Semantic 'no throw' error with -profile switch
@9rnsr 9rnsr merged commit c5147ac into dlang:master Nov 16, 2013
@yebblies yebblies deleted the issue11375 branch November 16, 2013 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants