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.
Comment #1 by k.hara.pg — 2016-04-12T15:10:37Z
Comment #2 by github-bugzilla — 2016-05-03T18:31:25Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7fcf45cf9b2ce6b789071a6cf2f79017ea642408 fix Issue 15856 - Confusing error message with -transition=checkimports * Add -transition=chekcimporrts logic in Type(Struct|Class).dotExp * Stop confusing deprecation message "... found in local import" message in ScopeDsymbol.search https://github.com/dlang/dmd/commit/c5a5758e1c958b0ba919aa1581afeba9bd829dac Merge pull request #5651 from 9rnsr/fix15856 Issue 15856 - Confusing error message with -transition=checkimports
Comment #3 by github-bugzilla — 2016-05-16T02:51:23Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7fcf45cf9b2ce6b789071a6cf2f79017ea642408 fix Issue 15856 - Confusing error message with -transition=checkimports https://github.com/dlang/dmd/commit/c5a5758e1c958b0ba919aa1581afeba9bd829dac Merge pull request #5651 from 9rnsr/fix15856