Bug 455 – DMD accepts illegal identifiers in module names if no ModuleDeclaration is used

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-10-25T00:39:00Z
Last change time
2014-02-15T13:21:23Z
Keywords
accepts-invalid
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2006-10-25T00:39:54Z
sample: dmd 3/4/a.d
Comment #1 by bugs-d — 2009-03-28T22:55:43Z
As far as I understand, DMD strips off path names (flattening all passed files to the same package.) From the documentation: "The ModuleDeclaration sets the name of the module and what package it belongs to. If absent, the module name is taken to be the same name (stripped of path and extension) of the source file name." Marking as invalid, with the assumption that someone will come and verify. I did see a case where DMD accepts an invalid filename, but it's a separate issue. -[Unknown]