[Issue 8259] AssociativeArray seen through with alias parameter and UFCS

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8259


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-06-20 00:35:11 PDT ---
Works in 2.060head.

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


[Issue 8266] Calling a function in pseudo-member syntax fails to deduce template argument type that uses alias this

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8266


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-06-20 00:35:15 PDT ---
Works in 2.060head.

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


[Issue 8270] New: Different error messages for missing const in var[] and var.opSlice()

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8270

   Summary: Different error messages for missing const in var[]
and var.opSlice()
   Product: D
   Version: D2
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: minor
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: xa...@xammy.homelinux.net


--- Comment #0 from Matthias Walter xa...@xammy.homelinux.net 2012-06-20 
01:19:59 PDT ---
Consider the following code:

struct S
{
  void opSlice() { }
}

void main()
{
  const(S) s;
  s[];
  s.opSlice();
}

It results in two error messages from which the second is correct since it
comlains about opSlice not being const but s being a const(S). The first one
misses this information.

Error: function main.S.opSlice () is not callable using argument types ()
Error: function main.S.opSlice () is not callable using argument types () const

This bug does not seem to affect other operators like opIndex or opCall.

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


[Issue 8259] AssociativeArray seen through with alias parameter and UFCS

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8259



--- Comment #2 from Jacob Carlborg d...@me.com 2012-06-20 04:28:41 PDT ---
I does, cool.

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


[Issue 8271] New: [Ddoc] non-ascii character string macro names cannot be replaced

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8271

   Summary: [Ddoc] non-ascii character string macro names cannot
be replaced
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO zan77...@nifty.com 2012-06-20 07:08:33 PDT ---
This documentation comment doesn't work well:
---
/**
 * $(まくろ)
 * 
 * Macros:
 * まくろ = マクロ
 */
void main(){}
/* まくろ = Ma Ku Ro(macro) in Japanese Hiragana */
/* マクロ = Ma Ku Ro(macro) in Japanese Katakana */
---

dmd replace only the macro name which [A-Za-z_][A-Za-z0-9_]* matches as a macro
name of Ddoc now.
The macro name should accept non-ascii character string like 'Identifier'.

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


[Issue 8272] New: [Ddoc] Recursive macro expansion is failed.

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8272

   Summary: [Ddoc] Recursive macro expansion is failed.
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO zan77...@nifty.com 2012-06-20 07:15:01 PDT ---
This documentation comment doesn't work well:

/**
 * $(MACRO_A MACRO_B)
 * 
 * Macros:
 * MACRO_A = $($1)
 * MACRO_B = Macro C
 */
void main(){}


$(MACRO_A MACRO_B) should be replaced to Macro C. But now, this is replaced
to $(MACRO_B).

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


[Issue 5570] 64 bit C ABI not followed for passing structs and complex numbers as function parameters

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5570



--- Comment #22 from klickverbot c...@klickverbot.at 2012-06-20 09:25:24 PDT 
---
(In reply to comment #21)
 When fixing the remaining issues, please also consider treating dynamic D
 arrays as »struct Array(T) { T* ptr; size_t length; }« on x86_64, i.e. passing
 them in two integer registers (if available).

The fields of the struct should obviously have been swapped.

In any case, this has been addressed in
https://github.com/D-Programming-Language/dmd/commit/f50a339b86d9d2c141061d38f4f682211c3c07c3
and related commits – whether this was a coincidence or not, thanks a lot for
the quick fix!

--- Comment #23 from klickverbot c...@klickverbot.at 2012-06-20 09:25:25 PDT 
---
(In reply to comment #21)
 When fixing the remaining issues, please also consider treating dynamic D
 arrays as »struct Array(T) { T* ptr; size_t length; }« on x86_64, i.e. passing
 them in two integer registers (if available).

The fields of the struct should obviously have been swapped.

In any case, this has been addressed in
https://github.com/D-Programming-Language/dmd/commit/f50a339b86d9d2c141061d38f4f682211c3c07c3
and related commits – whether this was a coincidence or not, thanks a lot for
the quick fix!

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


[Issue 5570] 64 bit C ABI not followed for passing structs and complex numbers as function parameters

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5570



--- Comment #22 from klickverbot c...@klickverbot.at 2012-06-20 09:25:24 PDT 
---
(In reply to comment #21)
 When fixing the remaining issues, please also consider treating dynamic D
 arrays as »struct Array(T) { T* ptr; size_t length; }« on x86_64, i.e. passing
 them in two integer registers (if available).

The fields of the struct should obviously have been swapped.

In any case, this has been addressed in
https://github.com/D-Programming-Language/dmd/commit/f50a339b86d9d2c141061d38f4f682211c3c07c3
and related commits – whether this was a coincidence or not, thanks a lot for
the quick fix!

--- Comment #23 from klickverbot c...@klickverbot.at 2012-06-20 09:25:25 PDT 
---
(In reply to comment #21)
 When fixing the remaining issues, please also consider treating dynamic D
 arrays as »struct Array(T) { T* ptr; size_t length; }« on x86_64, i.e. passing
 them in two integer registers (if available).

The fields of the struct should obviously have been swapped.

In any case, this has been addressed in
https://github.com/D-Programming-Language/dmd/commit/f50a339b86d9d2c141061d38f4f682211c3c07c3
and related commits – whether this was a coincidence or not, thanks a lot for
the quick fix!

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


[Issue 8273] New: FreeBSD core.sys.posix.unistd enums severely lacking

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8273

   Summary: FreeBSD core.sys.posix.unistd enums severely lacking
   Product: D
   Version: D2
  Platform: All
OS/Version: FreeBSD
Status: NEW
  Severity: normal
  Priority: P2
 Component: druntime
AssignedTo: nob...@puremagic.com
ReportedBy: a...@lycus.org


--- Comment #0 from Alex R�nne Petersen a...@lycus.org 2012-06-20 21:02:57 
CEST ---
The enums in core.sys.posix.unistd are not at all in sync with FreeBSD's
unistd.h.

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


[Issue 8249] Spurious error message with templates and alias this

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8249



--- Comment #1 from github-bugzi...@puremagic.com 2012-06-20 12:24:20 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c811c9a699892605f7267dc96e52e5aa144232f7
Fix issue 8249 Spurious error message with templates and alias this

Lookup should be blocked only by errors in this template instance,
not by any global error.

https://github.com/D-Programming-Language/dmd/commit/0e2c6421ff333d74acc294c2958f4ae90fa76098
Merge pull request #1015 from donc/spurious8249templatealiasthis

Fix issue 8249 Spurious error message with templates and alias this

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


[Issue 8249] Spurious error message with templates and alias this

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8249


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

   What|Removed |Added

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


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


[Issue 8273] FreeBSD core.sys.posix.unistd enums severely lacking

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8273


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

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #1 from Walter Bright bugzi...@digitalmars.com 2012-06-20 
12:59:41 PDT ---
Which ones are you talking about? I checked these:

else version( FreeBSD )
{
enum F_OK   = 0;
enum R_OK   = 0x04;
enum W_OK   = 0x02;
enum X_OK   = 0x01;

enum F_ULOCK= 0;
enum F_LOCK = 1;
enum F_TLOCK= 2;
enum F_TEST = 3;
}

from unistd.d and they are correct.

Please be specific about what is in error.

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



[Issue 8273] FreeBSD core.sys.posix.unistd enums severely lacking

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8273



--- Comment #2 from Alex R�nne Petersen a...@lycus.org 2012-06-20 22:00:54 
CEST ---
More specifically, all the _SC_* constants that are specified in POSIX
(_SC_PAGESIZE for example) are not there (but are in unistd.h). Note that they
are there for Linux, but not FreeBSD (and also note that FreeBSD's definitions
are completely different).

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


[Issue 8237] Error message with _error_ when using failed type inference in template parameter

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8237



--- Comment #2 from github-bugzi...@puremagic.com 2012-06-20 13:03:00 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a0976bd34fa140d574e754ff0a6ebfa7d9771d3a
Fix issue 8237 Error message with _error_ when using failed type inference in
template parameter

https://github.com/D-Programming-Language/dmd/commit/eb414991fa87d3f701238bb5109f2d98abcb3855
Merge pull request #1016 from donc/ctfeEntry

Stop running CTFE on symbols, + fix bug 8237

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


[Issue 8273] FreeBSD core.sys.posix.unistd enums severely lacking

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8273


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

   What|Removed |Added

   Severity|normal  |enhancement


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


[Issue 8275] New: DMD assumes that Object.toHash() overrides are @safe, even though base is @trusted

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8275

   Summary: DMD assumes that Object.toHash() overrides are @safe,
even though base is @trusted
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: minor
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: a...@lycus.org


--- Comment #0 from Alex R�nne Petersen a...@lycus.org 2012-06-21 04:37:10 
CEST ---
class A
{
override hash_t toHash() pure nothrow const
{
return *cast(hash_t*)main;
}
}

void main()
{
}

test.d(5): Error: cast from void function() to uint* not allowed in safe code

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


[Issue 8264] [std.conv.to] constructing conversion doesn't work with alias this

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8264



--- Comment #4 from github-bugzi...@puremagic.com 2012-06-20 20:59:39 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/18564f4fa20bd7d3c66e0d37494d4305edb048fd
fix Issue 8264 - [std.conv.to] constructing conversion doesn't work with alias
this

https://github.com/D-Programming-Language/phobos/commit/32d9b329057a01b5775c4cfdebc869f86ca0c691
Merge pull request #640 from 9rnsr/fix8264

Issue 8264 - [std.conv.to] constructing conversion doesn't work with alias this

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


[Issue 8264] [std.conv.to] constructing conversion doesn't work with alias this

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8264



--- Comment #5 from github-bugzi...@puremagic.com 2012-06-20 21:02:02 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/2a3b0b0ffe12a25e5f0a1e9e5b6535a0a531cb33
Updated changelog for fix for issue# 8264.

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


[Issue 8264] [std.conv.to] constructing conversion doesn't work with alias this

2012-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8264


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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