[Issue 9826] import doesn't work with absolute paths

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 27 09:45:41 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=9826

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com

--- Comment #5 from Vladimir Panteleev <thecybershadow at gmail.com> ---
String-importing absolute paths to arbitrary files are forbidden by design, to
prevent programs from capturing arbitrary files from the filesystem during
compilation.

The bug is that the compiler should realize that the absolute path, in fact,
points to a file that is under the allowed string import path (-J.).

--


More information about the Digitalmars-d-bugs mailing list