[Issue 5535] Bulding with -D shouldn't generate an executable

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5535


Jonathan M Davis  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX


--- Comment #1 from Jonathan M Davis  2011-11-20 03:28:51 
PST ---
I really don't think that documentation should be generated as part of a build
which generates an executable, but given that we decided that we weren't going
to assume that for Phobos and added StdDdoc to mitigate the problem, this
enhancement request stands no chance of ever being implemented, so I'm closing
it.

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


[Issue 6632] toUTFz sometimes does not work with const parameters

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6632



--- Comment #8 from Jonathan M Davis  2011-11-20 04:52:50 
PST ---
https://github.com/D-Programming-Language/phobos/pull/279

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


[Issue 6978] New: Mixin behavior order dependent

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6978

   Summary: Mixin behavior order dependent
   Product: D
   Version: D2
  Platform: x86_64
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: norb...@nemec-online.de


--- Comment #0 from Norbert Nemec  2011-11-20 06:05:51 
PST ---
The attached file fails to compile with the message:

./bug_mixin_order.d(6): Error: forward reference of variable rank
./bug_mixin_order.d(10): Error: mixin
bug_mixin_order.MyArray!(int,4).MyArray.verifyArray!() error instantiating
./bug_mixin_order.d(20): Error: template instance
bug_mixin_order.MyArray!(int,4) error instantiating



Strangely, the assertion fails only if it is forward referencing *and* inside a
mixin. Either situation on its own works fine.

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


[Issue 6978] Mixin behavior order dependent

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6978



--- Comment #1 from Norbert Nemec  2011-11-20 06:07:03 
PST ---
Created an attachment (id=1046)
The file failing to compile...

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


[Issue 6979] New: hasUnsharedAliasing cannot accept plural parameters

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6979

   Summary: hasUnsharedAliasing cannot accept plural parameters
   Product: D
   Version: D2
  Platform: Other
OS/Version: Windows
Status: NEW
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO  2011-11-20 07:13:52 PST ---
This code doesn't work!


import std.traits;
static assert(!hasUnsharedAliasing!(int, shared(int)*));


Though it has the interface that can accept plural parameters, actually, it
accepts only a single parameter.
std.concurrency defines hasLocalAliasing for this purpose, but
hasUnsharedAliasing should be like this.

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


[Issue 6980] New: Disallow shadowing template parameters

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6980

   Summary: Disallow shadowing template parameters
   Product: D
   Version: D2
  Platform: Other
OS/Version: Windows
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: kyfo...@gmail.com


--- Comment #0 from Kyle Foley  2011-11-20 10:48:44 EST ---
This example compiles in 2.056

---
struct A(T)
{
T func(T)(T rhs)
{
return rhs;
}
}

void main()
{
A!(int) a;

a.func("test");
}
---

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


[Issue 6805] Can't use a type from opDispatch template

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6805


Walter Bright  changed:

   What|Removed |Added

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


--- Comment #2 from Walter Bright  2011-11-20 
11:38:45 PST ---
https://github.com/D-Programming-Language/dmd/commit/24a34bba42fd48f191086c353bc2e61f93f0b950

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


[Issue 6981] New: incorrect error message when calling method without parentheses

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6981

   Summary: incorrect error message when calling method without
parentheses
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: diagnostic
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: mrmoc...@gmx.de


--- Comment #0 from Trass3r  2011-11-20 13:48:56 PST ---
class Document
{
const
override hash_t toHash()
{
return super.toHash;
}
}

Error: function object.Object.toHash () is not callable using argument types ()

If you change it into 'return super.toHash();' then it prints
Error: function object.Object.toHash () is not callable using argument types ()
const

OT: I really wish that horrible error message would be turned into something
more easily understandable like 'function can't be called on a const instance'
or whatever.

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


[Issue 6981] incorrect error message when calling method without parentheses

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6981



--- Comment #1 from Trass3r  2011-11-20 13:57:30 PST ---
Actually I think it shouldn't even get to that point.
Shouldn't it complain about toHash not overriding a base method?

The above error message isn't helpful at all, especially if the const isn't
applied to the function directly but through a 'const: /*many functions*/'.

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


[Issue 6077] CTFE: Cannot append null array to null array.

2011-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6077


Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #2 from Walter Bright  2011-11-20 
23:16:45 PST ---
Previous fix was incomplete.

https://github.com/D-Programming-Language/dmd/commit/500cfcee97506e152b74610ed80d0dbaacdcf7e2

https://github.com/D-Programming-Language/dmd/commit/d46685b28d2fa253f97d4eeb2700cf2f0c191002

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