[Issue 9338] Compiler segfaults if try to CTFE member function without valid 'this'

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9338 Kenji Hara changed: What|Removed |Added Keywords||ice Summary|Compiler segfault w

[Issue 9178] UDA: getAttributes does not play well with tupleof

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9178 Jacob Carlborg changed: What|Removed |Added CC||d...@me.com --- Comment #2 from Jacob

[Issue 9344] A program takes a console comand as an argument.

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9344 --- Comment #1 from Kenji Hara 2013-01-17 23:28:16 PST --- (In reply to comment #0) > import std.stdio; > > int main(char[][] p_Args) > { > foreach(char[] l_Arg; p_Args) > { >writefln("Argument '%s'", l_Arg); > } > return 0; > } > >

[Issue 9083] mixin expression on template argument doesn't work

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9083 Kenji Hara changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 9178] UDA: getAttributes does not play well with tupleof

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9178 Kenji Hara changed: What|Removed |Added Keywords||pull, rejects-valid --- Comment #1 from K

[Issue 9344] New: A program takes a console comand as an argument.

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9344 Summary: A program takes a console comand as an argument. Product: D Version: D2 Platform: x86 OS/Version: Linux Status: NEW Severity: major Priority: P2 C

[Issue 9337] There's no Duration.max

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9337 --- Comment #2 from github-bugzi...@puremagic.com 2013-01-17 21:38:15 PST --- Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/606a6e52c488051708259e6834595

[Issue 9337] There's no Duration.max

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9337 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #13 from hst...@quickfur.ath.cx 2013-01-17 21:35:46 PST --- Oh? This code compiles & links just fine: import std.random; import std.traits; E randomPick(E)() if (is(E == enum)) { static members = [ EnumMembers!E ];

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #12 from Andrej Mitrovic 2013-01-17 21:21:50 PST --- (In reply to comment #11) > I don't understand. If you use that line in uniform(), and it works, then > unittests shouldn't have any problems either, no? The problem is the enum

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #11 from hst...@quickfur.ath.cx 2013-01-17 21:15:26 PST --- I don't understand. If you use that line in uniform(), and it works, then unittests shouldn't have any problems either, no? -- Configure issuemail: http://d.puremagic.com/

[Issue 9337] There's no Duration.max

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9337 --- Comment #1 from Jonathan M Davis 2013-01-17 20:45:56 PST --- https://github.com/D-Programming-Language/druntime/pull/387 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail be

[Issue 6708] immutable ref implicit cast to const ref

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6708 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 9091] Using __traits(getMember) on template argument fails inside member function

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9091 --- Comment #8 from Kenji Hara 2013-01-17 20:14:14 PST --- Unfortunately, this still not be fixed completely. https://github.com/D-Programming-Language/dmd/pull/1406 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=ema

[Issue 6708] immutable ref implicit cast to const ref

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6708 --- Comment #3 from github-bugzi...@puremagic.com 2013-01-17 18:45:15 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/704240e0d391cbf76f45d4d5e8e2a87454494e1

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #10 from Andrej Mitrovic 2013-01-17 17:43:00 PST --- (In reply to comment #9) > If you write "static arr = [EnumMembers!T];", you should be able to evade > issue > 6057. The issue is with unittests. -- Configure issuemail: http

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #9 from hst...@quickfur.ath.cx 2013-01-17 17:36:18 PST --- If you write "static arr = [EnumMembers!T];", you should be able to evade issue 6057. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ---

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #8 from Andrej Mitrovic 2013-01-17 17:29:52 PST --- (In reply to comment #7) > As much as I'd love to make a pull for this I already know I'm going to run > into Issue 6057 (which has a pull but needs a review). Looks like I said

[Issue 6319] debug's relaxed purity does not apply to nested scopes

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6319 --- Comment #6 from github-bugzi...@puremagic.com 2013-01-17 17:23:07 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/fc45fef72942938f2f386bb8daeab327eb7243d

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #7 from Andrej Mitrovic 2013-01-17 17:08:20 PST --- As much as I'd love to make a pull for this I already know I'm going to run into Issue 6057 (which has a pull but needs a review). -- Configure issuemail: http://d.puremagic.com

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #6 from Andrej Mitrovic 2013-01-17 17:01:43 PST --- (In reply to comment #4) > (In reply to comment #1) > > > enum arr = [EnumMembers!T]; > > Be very careful with enum arrays. They are very inefficient. Well, the compiler is

[Issue 9343] New: Problem installing dmd-2.061-0.fedora.x86_64.rpm on Fedora 18

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9343 Summary: Problem installing dmd-2.061-0.fedora.x86_64.rpm on Fedora 18 Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: min

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #2 from hst...@quickfur.ath.cx 2013-01-17 16:40:15 PST --- Yeah, that will do. Except that the "enum arr = [EnumMembers!E];" line may run into issue 6057. :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=e

[Issue 9342] New: nested aggregates generate closures, even when they don't escape

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9342 Summary: nested aggregates generate closures, even when they don't escape Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhan

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #5 from hst...@quickfur.ath.cx 2013-01-17 16:52:13 PST --- (In reply to comment #3) [...] > I think this is more efficient: > > > T uniform(T)() > if (is(T == enum) && isIntegral!T || isSomeChar!T) > { > static immutable T[Enum

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 --- Comment #4 from bearophile_h...@eml.cc 2013-01-17 16:48:48 PST --- (In reply to comment #1) > enum arr = [EnumMembers!T]; Be very careful with enum arrays. They are very inefficient. -- Configure issuemail: http://d.puremagic.com/iss

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 9339] std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 Andrej Mitrovic changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comme

[Issue 6057] Problem with defining enum in function

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6057 Andrej Mitrovic changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #

[Issue 9341] Linker error with array literal populated by compile-time tuple

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9341 Andrej Mitrovic changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 9341] New: Linker error with array literal populated by compile-time tuple

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9341 Summary: Linker error with array literal populated by compile-time tuple Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal

[Issue 9340] New: Covariant return type conflicts with out contract.

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9340 Summary: Covariant return type conflicts with out contract. Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 C

[Issue 9339] New: std.random.uniform!Enum should return random enum member

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9339 Summary: std.random.uniform!Enum should return random enum member Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement

[Issue 9338] New: Compiler segfault with template mixin creating compile time array

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9338 Summary: Compiler segfault with template mixin creating compile time array Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Sever

[Issue 9335] Dtors are not called for dynamic arrays initialized by literals

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9335 --- Comment #2 from Maxim Fomin 2013-01-17 10:07:54 PST --- (In reply to comment #1) > Same answer as in http://d.puremagic.com/issues/show_bug.cgi?id=9334. > > The array is allocated dynamically, and makes no promises it will release at > th

[Issue 9334] Dtor and postblit for struct heap object are not always called

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9334 --- Comment #2 from Maxim Fomin 2013-01-17 09:47:29 PST --- (In reply to comment #1) > I don't think so: The postblit (and destructor) you are seeing comes (AFAIK) > from moving a stack allocated S() into the heap, *during* the new. You misun

[Issue 9337] There's no Duration.max

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9337 Andrei Alexandrescu changed: What|Removed |Added AssignedTo|nob...@puremagic.com|jmdavisp...@gmx.com Sev

[Issue 9337] New: There's no Duration.max

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9337 Summary: There's no Duration.max Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos A

[Issue 9332] [REG][2.060 -> 02.061] struct constructor taking itself creates "Warning: statement is not reachable"

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9332 monarchdo...@gmail.com changed: What|Removed |Added Summary|[REG][2.061 -> 02.061a] |[REG][2.060 -> 02.061]

[Issue 9336] New: Writeln is unable to print address of shared variable

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9336 Summary: Writeln is unable to print address of shared variable Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 9335] Dtors are not called for dynamic arrays initialized by literals

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9335 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com

[Issue 9334] Dtor and postblit for struct heap object are not always called

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9334 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com --- Com

[Issue 9335] New: Dtors are not called for dynamic arrays initialized by literals

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9335 Summary: Dtors are not called for dynamic arrays initialized by literals Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal

[Issue 9334] New: Dtor and postblit for struct heap object are not always called

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9334 Summary: Dtor and postblit for struct heap object are not always called Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal

[Issue 9333] New: druntime module is not compiled into binary

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9333 Summary: druntime module is not compiled into binary Product: D Version: D2 Platform: All OS/Version: Linux Status: NEW Severity: critical Priority: P2 Com

[Issue 9332] New: [REG][2.061 -> 02.061a] struct constructor taking itself creates "Warning: statement is not reachable"

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9332 Summary: [REG][2.061 -> 02.061a] struct constructor taking itself creates "Warning: statement is not reachable" Product: D Version: unspecified Platform: All OS/Version: All

[Issue 5038] Allow declaring class invariant without parentheses

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5038 --- Comment #7 from Don 2013-01-17 01:28:22 PST --- (In reply to comment #6) > (In reply to comment #5) > > The deprecation page lists it as deprecated since 2.057, but the Error and > > Gone > > dates are empty. I'm not sure what the plan is,

[Issue 6743] ICE(mars.c) attempting to compile an exe file

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6743 --- Comment #3 from github-bugzi...@puremagic.com 2013-01-17 00:41:42 PST --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/56b6293b7f37f82fa7a4a6ce00fa1e3e79feb78

[Issue 6743] ICE(mars.c) attempting to compile an exe file

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6743 --- Comment #2 from github-bugzi...@puremagic.com 2013-01-17 00:39:21 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5ff13ae3ffb4c46b846c32f77da8d0500bb3c86

[Issue 9330] Cannot run dmd test suite with MSYS

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9330 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 9330] Cannot run dmd test suite with MSYS

2013-01-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9330 --- Comment #2 from github-bugzi...@puremagic.com 2013-01-17 00:34:43 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ab88809d64abb97d1e0387ba199380d67319dfb