www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20923] New: Playing with types leads to not detailed error

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

          Issue ID: 20923
           Summary: Playing with types leads to not detailed error message
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: feklushkin.denis gmail.com

Code:

================
module app;

alias c_ulong = ulong;

extern(C)
{
    alias size_t = c_ulong;

    struct S
    {
        real not_reproduceable_without_this_variable;
    }
}
================

Try to compile:

$ dmd -c -m32 app.d
Error: cannot implicitly convert expression h of type ulong to uint

Error message isn't contains filename and line number, but contains reference
to unknown h expression.

--
Jun 11