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 7786 - dmd crashes with invalid module name #861

Closed
wants to merge 2 commits into from

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Apr 3, 2012

#if TARGET_NET //dot net needs modules and packages with same name
#else
if (p->isModule())
{ p->error("module and package have the same name");
Copy link
Collaborator

Choose a reason for hiding this comment

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

No no no!
Getting rid of that ridiculous error message was the whole point of the original commit.
The module and package DO NOT HAVE THE SAME NAME.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we remove this error message, following Example compiles WITHOUT errors.
It is another regression (see bugzilla issue 7786 and the outputs in 2.058).

Agreed, but adding a nonsense error message is not a good solution.

@donc
Copy link
Collaborator

donc commented Apr 3, 2012

Alternative pull request gives a nicer error message:

#864

@9rnsr
Copy link
Contributor Author

9rnsr commented Apr 4, 2012

Pull #864 is better than this, so I close.

@9rnsr 9rnsr closed this Apr 4, 2012
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.

2 participants