Skip to content

New warning: missing import lists

Import lists are useful when importing from a package, because they insulates the client from possible name-clashes caused by additions to the package. There are also some good reasons not to use import lists; see Commentary/CodingStyle.

For those that want to use import lists, we should have a warning that identifies imports with missing import lists, perhaps for package imports only. Note that

import M (T(..))

Qualifies as an insufficiently specific import list; the sub-names of T should be specified.

Trac metadata
Trac field Value
Version 6.6.1
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information