[Issue 20923] New: Playing with types leads to not detailed error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 12 00:50:27 UTC 2020
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 at puremagic.com
Reporter: feklushkin.denis at 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.
--
More information about the Digitalmars-d-bugs
mailing list