Bug 15856 – Confusing error message with -transition=checkimports
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-03-31T19:19:00Z
Last change time
2016-05-16T02:51:23Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
doob
Comments
Comment #0 by doob — 2016-03-31T19:19:22Z
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.