[Issue 7290] New: Heap allocation with scoped delegate literal

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7290

   Summary: Heap allocation with scoped delegate literal
   Product: D
   Version: D2
  Platform: Other
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2012-01-14 00:55:28 PST ---
int foo(alias pred)(int val)
{
return pred(val);
}

int bar(int val)
{
scope pred = (int a) => a + val; //<- causes allocation
return foo!(pred)(2);
}

void main()
{
bar(3) == 5 || assert(0);
}



Related to resolved
http://d.puremagic.com/issues/show_bug.cgi?id=7120

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


[Issue 7259] Explicit annotation for method hiding

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7259



--- Comment #2 from bearophile_h...@eml.cc 2012-01-14 10:26:48 PST ---
See also:

http://msdn.microsoft.com/en-us/library/51y09td4%28v=vs.71%29.aspx

http://blogs.msdn.com/b/csharpfaq/archive/2004/03/12/what-s-the-difference-between-code-override-code-and-code-new-code.aspx

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


[Issue 7247] All programs segfault before main

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7247


timon.g...@gmx.ch changed:

   What|Removed |Added

 CC||timon.g...@gmx.ch


--- Comment #5 from timon.g...@gmx.ch 2012-01-14 11:21:22 PST ---
I don't think the bug tracker is the right place to get help for solving your
problem, because it must be some issue with your specific setup rather than a
compiler bug. (dmd 2.057 works fine for me on Ubuntu 11.10 x86_64). Maybe you
want to discuss the crashes on the newsgroup?

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


[Issue 7291] New: UFCS doesn't work for static member functions

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7291

   Summary: UFCS doesn't work for static member functions
   Product: D
   Version: D2
  Platform: Other
OS/Version: Windows
Status: NEW
  Keywords: rejects-valid
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic  2012-01-14 
12:07:54 PST ---
module test;

struct Foo
{
static void func(string x) { }
void foo() { "".func(); }
}

void main() { }

test.d(6): Error: undefined identifier module test.func

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


[Issue 7187] Regression(head 12d62ca5): [CTFE] ICE on slicing

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7187


Walter Bright  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


--- Comment #5 from Walter Bright  2012-01-14 
17:40:03 PST ---
https://github.com/D-Programming-Language/dmd/commit/1cbd1959e41d39c812a8f4c1a17eb8535d44547a

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

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


[Issue 7245] [CTFE] Address of ref foreach parameter changes to point after array

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7245


Walter Bright  changed:

   What|Removed |Added

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


--- Comment #2 from Walter Bright  2012-01-14 
17:40:27 PST ---
https://github.com/D-Programming-Language/dmd/commit/1cbd1959e41d39c812a8f4c1a17eb8535d44547a

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

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


[Issue 7248] [CTFE] Stack overflow on using struct filed pointer with address of array element

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7248


Walter Bright  changed:

   What|Removed |Added

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


--- Comment #1 from Walter Bright  2012-01-14 
17:40:47 PST ---
https://github.com/D-Programming-Language/dmd/commit/1cbd1959e41d39c812a8f4c1a17eb8535d44547a

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

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


[Issue 7266] [CTFE] Assign to ref param (that's taken from struct member) is noop

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7266


Walter Bright  changed:

   What|Removed |Added

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


--- Comment #1 from Walter Bright  2012-01-14 
17:41:04 PST ---
https://github.com/D-Programming-Language/dmd/commit/1cbd1959e41d39c812a8f4c1a17eb8535d44547a

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

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


[Issue 7292] New: Exception and Error missing from object docs

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7292

   Summary: Exception and Error missing from object docs
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: websites
AssignedTo: nob...@puremagic.com
ReportedBy: jlqu...@optonline.net


--- Comment #0 from Jerry Quinn  2012-01-14 19:18:07 PST 
---
http://www.d-programming-language.org/phobos/object.html#Throwable

This should describe the Throwable object and the Exception and Error objects
that derive from it.

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


[Issue 7293] New: dmd segfault

2012-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7293

   Summary: dmd segfault
   Product: D
   Version: D2
  Platform: x86_64
OS/Version: Linux
Status: NEW
  Severity: major
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: jlqu...@optonline.net


--- Comment #0 from Jerry Quinn  2012-01-14 19:43:34 PST 
---
Ubuntu 11.10, x86_64, compiling the following crashes the compiler:

import std.regex;
class C {
  Regex!dchar re;
  auto m = match("", "");
}

jlquinn@wyvern:~/src$ ~/dmd2/linux/bin64/dmd -c bug1.d 
Segmentation fault

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