[Issue 6720] ICE(cod1.c) casting return of void function to bool

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6720


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
 CC||clugd...@yahoo.com.au
Version|D2  |D1  D2
Summary|Internal error: |ICE(cod1.c) casting return
   |../ztc/cod1.c 1909  |of void function to bool


--- Comment #1 from Don clugd...@yahoo.com.au 2011-09-23 23:07:30 PDT ---
Not a regression. Applies even to prehistoric versions of D (same behaviour on
D0.050).
Not specific to main().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6719] Error: out of memory in parsing

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6719


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Priority|P2  |P1
   Severity|normal  |major


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2011-09-24 04:02:55 PDT ---
The probability of hitting this problem is not big, but the impact is serious.

This issue constantly breaks my the code that I use.

I hope that this bug will be fixed urgently.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 5959] Return by reference with nested function should be allowed

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5959


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-09-24 05:36:01 PDT ---
Already fixed, but not marked.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6723] New: foreach (i, e; range) {} crash

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6723

   Summary: foreach (i, e; range) {} crash
   Product: D
   Version: D2
  Platform: Other
OS/Version: Windows
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: kyfo...@gmail.com


--- Comment #0 from kyfo...@gmail.com 2011-09-24 13:16:37 PDT ---
The following crashes the compiler:

void main()
{
import std.range;
foreach (i, e; iota(1,2)) {}
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6724] New: core.time.dur should use SI symbols for durations, not the ad hoc contractions it uses now

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6724

   Summary: core.time.dur should use SI symbols for durations, not
the ad hoc contractions it uses now
   Product: D
   Version: D2
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: druntime
AssignedTo: nob...@puremagic.com
ReportedBy: siegelords_ab...@yahoo.com


--- Comment #0 from siegelords_ab...@yahoo.com 2011-09-24 14:11:17 PDT ---
That is:
ms,ns,s,h,d,�s (I'd accept us as an alternative)

If not, at the very least use 'secs' and not 'seconds' so it matches the
sub-second interval names.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6725] New: core.time.dur should accept floating point

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6725

   Summary: core.time.dur should accept floating point
   Product: D
   Version: D2
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: druntime
AssignedTo: nob...@puremagic.com
ReportedBy: siegelords_ab...@yahoo.com


--- Comment #0 from siegelords_ab...@yahoo.com 2011-09-24 14:15:18 PDT ---
I'd prefer to be able to do this:

dur!(secs)(1.0);
dur!(secs)(1.5);
dur!(secs)(1.5001);

instead of having to do this:

dur!(secs)(1);
dur!(msecs)(1500);
dur!(nsecs)(1500100);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6724] core.time.dur should use SI symbols for durations, not the ad hoc contractions it uses now

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6724


Jonathan M Davis jmdavisp...@gmx.com changed:

   What|Removed |Added

 CC||jmdavisp...@gmx.com


--- Comment #1 from Jonathan M Davis jmdavisp...@gmx.com 2011-09-24 14:42:11 
PDT ---
All units seconds and greater are spelled out completely. All sub-second units
are abbreviated. That's by design.

We _could_ make it so that there are multiple names for each unit type, but
then that gets messy - both in terms of code and in terms of people having to
decipher template constraints. It's just cleaner to accept one specific string
for each unit type. So, I think that having multiple is ultimately a bad idea.

Changing the unit strings would break code for little gain IMHO. And going for
names as short as you suggest is error-prone. It's already bad enough that
msecs, usecs, and hnsecs are as similar as they are. The functions that the
unit strings are used with are exactly the kind of functions where it's often
easy to not notice a bug when the units are slightly off. So, making them even
less distinct would _not_ be a good idea as far as I'm concerned.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6723] foreach (i, e; range) {} crash

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6723


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-09-24 
16:54:55 PDT ---
It looks like I've ran into the same issue in bug 6726.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6726] DMD crash with index in foreach statement

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6726


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-09-24 
16:55:14 PDT ---
*** This issue has been marked as a duplicate of issue 6723 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6723] foreach (i, e; range) {} crash

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6723



--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-09-24 
16:55:14 PDT ---
*** Issue 6726 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6711] with doesn't work with alias this

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6711


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-09-24 
16:58:16 PDT ---
*** Issue 5887 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6711] with doesn't work with alias this

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6711



--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-09-24 
16:58:50 PDT ---
(In reply to comment #1)
 *** Issue 5887 has been marked as a duplicate of this issue. ***

Marked older as dup since you have a simpler test-case.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6723] foreach (i, e; range) {} crash

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6723



--- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-09-24 17:12:56 PDT ---
This code works with git master.

Maybe this issue was already fixed by following commit:
https://github.com/D-Programming-Language/dmd/commit/569077b

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4046] [CTFE] std.intrinsic

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4046


bearophile_h...@eml.cc changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX


--- Comment #3 from bearophile_h...@eml.cc 2011-09-24 18:29:33 PDT ---
(In reply to comment #1)

 I think they should be completely removed. There's a case for the intrinsics
 mentioned in bug 5703, but I think this should be a WONTFIX. To support them
 would just encourage slow, non-portable code.

OK, then I close this
But I suggest you to open an enhancement request that asks to deprecate the
useless/bad intrinsics :-)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6719] Error: out of memory in parsing

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6719


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2011-09-24 
18:55:57 PDT ---
https://github.com/D-Programming-Language/dmd/commit/8e42f064a3f9aba19fb437dc836b2b9507a49b52

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6360] @property is doubled in di files when used with auto

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6360


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #2 from Walter Bright bugzi...@digitalmars.com 2011-09-24 
21:02:36 PDT ---
https://github.com/D-Programming-Language/dmd/commit/15f54382fb89671c1c640d8b7c11da3b3b923aa1

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6596] Error message with not extern(C) function

2011-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6596


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2011-09-24 
21:03:16 PDT ---
https://github.com/D-Programming-Language/dmd/commit/15f54382fb89671c1c640d8b7c11da3b3b923aa1

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---