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

Error messages with __error: 6699, 7462, 7463 #704

Merged
merged 7 commits into from
Feb 18, 2012

Conversation

donc
Copy link
Collaborator

@donc donc commented Feb 9, 2012

The motivation for fixing these is not much that the error messages improve, but rather that it protects other parts of the compiler (eg, CTFE) from having to deal with garbage. OTOH, the fix for 6699a noticeably improves error message quality. (Don't try to deduce a function template, if one of the template arguments is an error).

6699 More cases of __error in error messages
7462 Error message with error in overridden function
7463 Duplicated error message with bad template value parameter

{ Object *o = targsi->tdata()[k];
Expression *checkarg = isExpression(o);
Type *txx = isType(o);
if (checkarg && checkarg->op == TOKerror)
Copy link
Member

Choose a reason for hiding this comment

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

template.c has isError which is similar to what you're doing here.

WalterBright added a commit that referenced this pull request Feb 18, 2012
Error messages with __error: 6699, 7462, 7463
@WalterBright WalterBright merged commit cfe3eda into dlang:master Feb 18, 2012
@WalterBright
Copy link
Member

When doing these, please add commit messages of the form "fix issue nnnn". Otherwise, bugzilla has to be manually updated.

@donc
Copy link
Collaborator Author

donc commented Feb 18, 2012

On 18 February 2012 08:08, Walter Bright
reply@reply.github.com
wrote:

When doing these, please add commit messages of the form "fix issue nnnn". Otherwise, bugzilla has to be manually updated.

They were included in this one.
(Several commits were fixing the same bug, only the last one had the
"Fixes bug 6699"

@WalterBright
Copy link
Member

github didn't recognize them, and it didn't get posted to bugzilla. I saw just "fix for 6699" which I don't think is recognized. Please use "fix issue nnnn".

@donc
Copy link
Collaborator Author

donc commented Feb 18, 2012

On 18 February 2012 09:07, Walter Bright
reply@reply.github.com
wrote:

github didn't recognize them, and it didn't get posted to bugzilla. I saw just "fix for 6699" which I don't think is recognized.

The text was "Fixes bug 6699."
Which I believe matches the regex that Brad posted:

/((close|fix|address)e?(s|d)? )?(ticket|bug|tracker item|issue)s?:?
*([\d ,+&#and]+)/i

I wonder why it didn't work.

Please use "fix issue nnnn".


Reply to this email directly or view it on GitHub:
#704 (comment)

braddr pushed a commit to braddr/dmd that referenced this pull request Oct 22, 2012
Fix cstream.printf() on x86_64.
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.

3 participants