Bug 15265 – Phobos doesn't work with -property

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-30T11:12:00Z
Last change time
2015-10-31T01:46:15Z
Assigned to
nobody
Creator
v.richomme

Comments

Comment #0 by v.richomme — 2015-10-30T11:12:33Z
I am using DMD Beta 2.068.2 to compile DGui(https://bitbucket.org/dgui/dgui) and I have an error: ------ Build started: Project: DGui, Configuration: Debug Win32 ------ Building Debug\DGui.lib... C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1432): Error: not a property r1[0..pos].byUTF!char C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1432): Error: not a property r2.byUTF!char C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1233): Error: template instance std.path.chainPath!(char[], const(char)[], ) error instantiating C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1251): instantiated from here: buildPath!(const(char)[][]) dgui\application.d(213): instantiated from here: buildPath!char binary C:\DEV\D\dmd2\windows\bin\dmd.exe version v2.068.2 After chating a bit on freenode it seems -property is not supported anymore: [12:00] <foo> smartmobili: don't use "-property" flag [12:00] <foo> it never worked, and that's what causes error [12:01] <bar> it breaks UFCS does it? [12:01] <foo> it breaks alot of things, as it was never really finished [12:01] <foo> for our case, "dmd -property" yiled the exact error message smartmobili quoted [12:02] <bar> good catch
Comment #1 by ketmar — 2015-10-30T11:17:21Z
sample code to test: import std.path; void main () { string temp = "temppath"; temp = std.path.buildPath(temp, "boo.foo"); } it compiles without "-property", but gives errors with it: src/phobos/std/path.d(1432): Error: not a property r1[0..pos].byUTF!char src/phobos/std/path.d(1432): Error: not a property r2.byUTF!char src/phobos/std/path.d(1233): Error: template instance std.path.chainPath!(char[], const(char)[], ) error instantiating src/phobos/std/path.d(1251): instantiated from here: buildPath!(const(char)[][]) z10.d(5): instantiated from here: buildPath!char
Comment #2 by dfj1esp02 — 2015-10-30T12:26:47Z
Comment #3 by issues.dlang — 2015-10-31T01:46:15Z
The example compiles with 2.069.