www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15856] New: Confusing error message with


          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

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

Mar 31 2016