digitalmars.D.bugs - [Issue 15856] New: Confusing error message with
- via Digitalmars-d-bugs (31/31) Mar 31 2016 https://issues.dlang.org/show_bug.cgi?id=15856
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 puremagic.com Reporter: doob 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. --
Mar 31 2016