[Issue 6189] register content destroyed in function prolog

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



--- Comment #6 from d...@dawgfoto.de 2012-01-13 04:43:54 PST ---
struct Point(T)
{
T x, y;
}
alias Point!int IPoint;
alias Point!float FPoint;

void calcCoeffs(uint half, IPoint pos, ref FPoint[2] pts, uint=0)
{
pos.x = ~(half - 1);
pos.y = ~(half - 1);
immutable float xo = pos.x;
immutable float yo = pos.y;

pts[0].x -= xo;
pts[0].y -= yo;
pts[1].x -= xo;
pts[1].y -= yo;
}

void main()
{
auto pos = IPoint(2, 2);
FPoint[2] pts;
pts[0] = pts[1] = FPoint(3, 3);
auto f = calcCoeffs;
f(2, pos, pts);

assert(pts[0].x == 1);
assert(pts[0].y == 1);
assert(pts[1].x == 1);
assert(pts[1].y == 1);
}



This one happens with xmmregs too.

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


[Issue 6189] register content destroyed in function prolog

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



--- Comment #7 from d...@dawgfoto.de 2012-01-13 04:45:03 PST ---
https://github.com/D-Programming-Language/dmd/pull/521

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


[Issue 1313] out/body disables escape analysis

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


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 2012-01-13 
10:41:57 PST ---
https://github.com/D-Programming-Language/dmd/commit/dba22f42fca18ecef744dd14e9ce625cb700b438

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

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


[Issue 7288] New: [ICE toir.c 190] with lambda return + auto

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

   Summary: [ICE toir.c 190] with lambda return + auto
   Product: D
   Version: D2
  Platform: x86
OS/Version: Windows
Status: NEW
  Keywords: rejects-valid
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2012-01-13 11:59:54 PST ---
auto foo() {
int x;
return () = { return x; };
}
void main() {}


DMD 2.058head:
Internal error: toir.c 190

-- 
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-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7247



--- Comment #2 from Jerry Quinn jlqu...@optonline.net 2012-01-13 20:51:34 PST 
---
2.056 worked fine for me.

-- 
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-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7247



--- Comment #3 from Jerry Quinn jlqu...@optonline.net 2012-01-13 21:06:10 PST 
---
Rebuilding dmd from src didn't help.  I get the same segfault.

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


[Issue 7289] New: format string docs don't describe how structs, unions, and assoc arrays are formatted

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

   Summary: format string docs don't describe how structs, unions,
and assoc arrays are formatted
   Product: D
   Version: D2
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: websites
AssignedTo: nob...@puremagic.com
ReportedBy: jlqu...@optonline.net


--- Comment #0 from Jerry Quinn jlqu...@optonline.net 2012-01-13 21:12:52 PST 
---
http://www.d-programming-language.org/phobos/std_format.html#format-string

%s should describe these.

-- 
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-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7247



--- Comment #4 from Jerry Quinn jlqu...@optonline.net 2012-01-13 21:16:11 PST 
---
32 bit dmd works, 64 bit dmd is busted.

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


[Issue 2028] Can't create template class in module of same name

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


Jerry Quinn jlqu...@optonline.net changed:

   What|Removed |Added

 CC||jlqu...@optonline.net


--- Comment #4 from Jerry Quinn jlqu...@optonline.net 2012-01-13 21:38:36 PST 
---
Any thoughts?  This bug is almost 4 years old and still present.

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


[Issue 2028] Can't create template class in module of same name

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


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

   What|Removed |Added

 CC||jmdavisp...@gmx.com


--- Comment #5 from Jonathan M Davis jmdavisp...@gmx.com 2012-01-13 22:00:37 
PST ---
I'm not sure if this is a bug or not. Given that it would work if a.a weren't a
template, that would tend to indicate that it's a bug, but I don't know. The
problem probably is tied into the fact that a.a doesn't really exist until it's
instantiated.

Regardless, this is one of a long list of bugs which has been sitting around
for a long time without being looked at. The increased community involvement
with dmd has helped substantially in getting bugs fixed, but there are still
plenty of them like this sitting around. There is talk of putting greater focus
on older bugs (e.g. addressing the 10 oldest bugs in bugzill each release)
which may finally ameliorate the problem though.

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