[Issue 15856] New: Confusing error message with -transition=checkimports
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Mar 31 12:19:22 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15856
Issue ID: 15856
Summary: Confusing error message with -transition=checkimports
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: doob at me.com
Compiling the following code:
class Foo
{
import core.stdc.config;
struct Bar
{
c_long a; // line 7
}
}
With the -transition=checkimports flag the compiler gives the following error
messages:
main.d(1): Deprecation: class main.Foo alias core.stdc.config.c_long found in
local import
main.d(7): Deprecation: local import search method found nothing (null) instead
of alias core.stdc.config.c_long
I'm not sure if the error message is just bad or if there's a bug in the
compiler.
--
More information about the Digitalmars-d-bugs
mailing list