[Issue 16640] New: void fun(string file=__FILE_FULL_PATH__) returns relative path
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Oct 26 14:35:47 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16640
Issue ID: 16640
Summary: void fun(string file=__FILE_FULL_PATH__) returns
relative path
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
DMD64 D Compiler v2.073.0-devel-aea0dec
dmd -run main.d
```
import std.stdio;
void main(){
fun();
}
void fun(string file=__FILE_FULL_PATH__){
string file2=__FILE_FULL_PATH__;
assert(file==file2, file~" "~file2);// fails
}
```
--
More information about the Digitalmars-d-bugs
mailing list