D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5879 - Not all frontend errors use stderr
Summary: Not all frontend errors use stderr
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other All
: P2 major
Assignee: yebblies
URL:
Keywords: diagnostic, iasm, pull
Depends on:
Blocks:
 
Reported: 2011-04-24 09:20 UTC by Andrej Mitrovic
Modified: 2015-06-09 05:11 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2011-04-24 09:20:34 UTC
module testasm;
void main()
{
    asm {                
        mov     ecx, 1;
    }     
}

> rdmd testasm.d
>   // no error

> dmd testasm.d
testasm.d(5): undefined identifier 'ecx'
Comment 1 kennytm 2011-04-24 11:37:02 UTC
The problem is ASM errors are written to stdout instead of stderr. Lines printed to stdout are redirected to testasm.d.deps.

The function 'asmerr' in 'iasm.c' should be changed to print to stderr instead of stdout.
Comment 3 github-bugzilla 2012-03-12 01:02:48 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e2a2f7eea93cb7bf461348e3405946c6cb5fcf16
Merge pull request #742 from yebblies/issue5879

Issue 5879 - Not all frontend errors use stderr