[Issue 3187] Nested foreach over opApply doesn't work

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3187


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

   What|Removed |Added

   Keywords||patch


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-12-01 01:53:10 PST ---
https://github.com/D-Programming-Language/dmd/pull/546

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


[Issue 7041] New: [PATCH] Add -di option to show deprecated errors as warnings

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7041

   Summary: [PATCH] Add -di option to show deprecated errors as
warnings
   Product: D
   Version: D1  D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: llu...@gmail.com


--- Comment #0 from Leandro Lucarella llu...@gmail.com 2011-12-01 03:30:37 
PST ---
The new option -di treats deprecation errors as informational warnings,
just like -wi show warnings as informational messages without triggering
errors. This would enable users to have a better update path from deprecated
features, as they can be reminded (annoyed) with warnings but they can still
compile their code.

Patches available as a pull request in Github:
https://github.com/D-Programming-Language/dmd/pull/248

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


[Issue 7042] New: Allocation of 'creal' array with 'new' fails when using DMD and OptLink in tandem

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7042

   Summary: Allocation of 'creal' array with 'new' fails when
using DMD and OptLink in tandem
   Product: D
   Version: D2
  Platform: x86
OS/Version: Windows
Status: NEW
  Severity: normal
  Priority: P2
 Component: Optlink
AssignedTo: nob...@puremagic.com
ReportedBy: full.de...@gmail.com


--- Comment #0 from Taco full.de...@gmail.com 2011-12-01 03:51:52 PST ---
Consider the following code:

main.d:
import std.stdio;

int main()
{  
alias creal T;

writeln(alloc);
T[] x = new T[4];
writeln(done);
return 0;
}

This runs fine when compiled with:
dmd main.d
main

However, it never displays done (it hangs) when compiled with:
dmd -c main.d
link main.obj
main

This is the case ONLY if T is 'double', 'idouble', 'creal'. I tried all other
types, but they work fine. Even a struct with one member of type double.

I use the binary package for windows of D2.056, at a Win7 32bit system. If you
need more info, please ask.

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


[Issue 7042] Allocation of 'creal' array with 'new' fails when using DMD and OptLink in tandem

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7042



--- Comment #1 from Taco full.de...@gmail.com 2011-12-01 03:55:38 PST ---
Might be duplicate of http://d.puremagic.com/issues/show_bug.cgi?id=3683
Except the linker links fine, the final executable does not.

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


[Issue 7037] TemplateTypeParameterSpecialization works differently from IsExpression regarding alias this

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7037


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

   What|Removed |Added

   Keywords||patch, rejects-valid
   Platform|Other   |All
 OS/Version|Windows |All


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2011-12-01 05:35:20 PST ---
https://github.com/D-Programming-Language/dmd/pull/547

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


[Issue 7029] std.container.Array cannot use insertAfter

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7029



--- Comment #1 from SHOO zan77...@nifty.com 2011-12-01 06:44:37 PST ---
https://github.com/D-Programming-Language/druntime/pull/92

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


[Issue 7029] std.container.Array cannot use insertAfter

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7029



--- Comment #2 from SHOO zan77...@nifty.com 2011-12-01 06:45:49 PST ---
Oops! My bad.

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


[Issue 1693] D DLLs do not support exceptions

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1693


SHOO zan77...@nifty.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #3 from SHOO zan77...@nifty.com 2011-12-01 06:46:38 PST ---
https://github.com/D-Programming-Language/druntime/pull/92

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


[Issue 7043] New: CTFE: ICE illegal reference value 0LU

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7043

   Summary: CTFE: ICE illegal reference value 0LU
   Product: D
   Version: D1  D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: mrmoc...@gmx.de


--- Comment #0 from Trass3r mrmoc...@gmx.de 2011-12-01 07:48:01 PST ---
import std.conv;
string demangleZSymbols(string sym)
{
char[] res;
try
auto len = parse!uint(sym);
catch (Exception e)
sym = null;
return cast(immutable) res;
}
pragma(msg, demangleZSymbols(8serenity9persister6Sqlite7__arrayZ));

$ dmd -c -release -O -inline treemapgen.d
std/array.d(467): Error: CTFE internal error: illegal reference value 0LU

dmd: interpret.c:6244: void VarDeclaration::createRefValue(Expression*):
Assertion `IsRefValueValid(newval)' failed.

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


[Issue 7043] CTFE: ICE illegal reference value 0LU

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7043



--- Comment #1 from Trass3r mrmoc...@gmx.de 2011-12-01 07:50:38 PST ---
Created an attachment (id=1048)
withoutstd

Here's a reduced version not importing phobos. Don't know if that helps.

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


[Issue 7044] New: [PATCH] Add -sL swith to pass linker flags at the end of the linker command

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044

   Summary: [PATCH] Add -sL swith to pass linker flags at the end
of the linker command
   Product: D
   Version: D1  D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: llu...@gmail.com


--- Comment #0 from Leandro Lucarella llu...@gmail.com 2011-12-01 07:52:28 
PST ---
There are some cases where linker flags order do matter (for example for
linking libraries). In those cases DMD provide no mechanism for altering
the order. This patches tries to minimize this problem by adding an
option (-sL) to add flags at the end of the linker command line. This
is specially useful to include libraries after the standard library
passed with -debuglib or -defaultlib.

Patch available as a pull request:
https://github.com/D-Programming-Language/dmd/pull/497

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


[Issue 7024] inconsistent mangling of shared in extern(C++)

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7024


Iain Buclaw ibuc...@ubuntu.com changed:

   What|Removed |Added

 CC||ibuc...@ubuntu.com


--- Comment #4 from Iain Buclaw ibuc...@ubuntu.com 2011-12-01 09:46:53 PST ---
Rather than trying to fix the C++ mangling, wouldn't it make more sense to
disallow 'shared' in extern(C++) declarations?

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


[Issue 4583] PIC code not working: EBX register set incorrectly

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4583



--- Comment #6 from Walter Bright bugzi...@digitalmars.com 2011-12-01 
10:53:36 PST ---
https://github.com/D-Programming-Language/dmd/commit/887dda0ba2439ca4dbeec38b0434377ba831cf40

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

This addresses setting EBX before the function call, not any other issues.

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


[Issue 7024] inconsistent mangling of shared in extern(C++)

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7024



--- Comment #5 from d...@dawgfoto.de 2011-12-01 12:50:37 PST ---
It'd be a cleaner cut to disallow immutable/shared/inout for extern(C++)
declarations. Not sure though how big the impact is.

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


[Issue 7045] New: AssertError in std.regex on line 1573

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7045

   Summary: AssertError in std.regex on line 1573
   Product: D
   Version: unspecified
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: critical
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: jmdavisp...@gmx.com


--- Comment #0 from Jonathan M Davis jmdavisp...@gmx.com 2011-12-01 13:01:31 
PST ---
Created an attachment (id=1049)
D program which fails

Running the attached program with the attached file (using the latest dmd,
druntime, and Phobos), results in this Assertion failure:

core.exception.AssertError@std.regex(1573): Assertion failure

./relayhosts_orig(_d_assertm+0x2a) [0x4d27aa]
./relayhosts_orig() [0x4d698d]
./relayhosts_orig(@safe std.typecons.Tuple!(std.internal.uni.CodepointSet,
std.regex.Parser!(immutable(char)[]).Parser.Operator).Tuple
std.regex.Parser!(immutable(char)[]).Parser.parseCharTerm()+0x60a) [0x4a04ae]
./relayhosts_orig(@safe void
std.regex.Parser!(immutable(char)[]).Parser.parseCharset()+0x1f1) [0x4a0ac1]
./relayhosts_orig(@safe void
std.regex.Parser!(immutable(char)[]).Parser.parseAtom()+0xf4) [0x49fa18]
./relayhosts_orig(@trusted void
std.regex.Parser!(immutable(char)[]).Parser.parseRegex()+0xb59) [0x49eb91]
./relayhosts_orig(@trusted std.regex.Parser!(immutable(char)[]).Parser
std.regex.Parser!(immutable(char)[]).Parser.__ctor!(const(char)[]).__ctor(immutable(char)[],
const(char)[])+0x6a) [0x4aeee2]
./relayhosts_orig(@safe std.regex.Regex!(char).Regex
std.regex.regex!(immutable(char)[]).regex(immutable(char)[],
const(char)[])+0x40) [0x49d8a8]
./relayhosts_orig(_Dmain+0x3b) [0x49d517]
./relayhosts_orig(extern (C) int rt.dmain2.main(int, char**).void
runMain()+0x17) [0x4d2ddf]
./relayhosts_orig(extern (C) int rt.dmain2.main(int, char**).void tryExec(scope
void delegate())+0x2a) [0x4d2986]
./relayhosts_orig(extern (C) int rt.dmain2.main(int, char**).void
runAll()+0x42) [0x4d2e32]
./relayhosts_orig(extern (C) int rt.dmain2.main(int, char**).void tryExec(scope
void delegate())+0x2a) [0x4d2986]
./relayhosts_orig(main+0xd3) [0x4d2917]
/lib/libc.so.6(__libc_start_main+0xed) [0x7f3dc4bc317d]


It happens on both 32-bit and 64-bit Linux. I don't know if it happens on other
OSes (though I assume that it does). I was trying to run an example from the
newsgroup to benchmark the old std.regex vs the new one, and while the old one
worked, the new one failed with the AssertError.

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


[Issue 7045] AssertError in std.regex on line 1573

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7045



--- Comment #1 from Jonathan M Davis jmdavisp...@gmx.com 2011-12-01 13:03:30 
PST ---
Created an attachment (id=1050)
Test file that I passed to the D program.

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


[Issue 2550] implicit conversions don't apply to template value parameter specialization

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2550


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

   What|Removed |Added

   Keywords||patch


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-12-01 13:42:33 PST ---
D2 patch:
https://github.com/D-Programming-Language/dmd/pull/449

This issue is almost same with bug3467.

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


[Issue 3467] Non-int integral template parameters not correctly propagated

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3467



--- Comment #8 from Kenji Hara k.hara...@gmail.com 2011-12-01 13:51:15 PST ---
Updated pull/449 to fix bug2550, they are almost same issues.

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


[Issue 6977] getErrno called as property in std.stdio

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6977


klickverbot c...@klickverbot.at changed:

   What|Removed |Added

   Keywords||patch


--- Comment #1 from klickverbot c...@klickverbot.at 2011-12-01 15:09:46 PST 
---
https://github.com/D-Programming-Language/phobos/pull/342

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


[Issue 6976] GetLastError called as property

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6976


klickverbot c...@klickverbot.at changed:

   What|Removed |Added

   Keywords||patch


--- Comment #1 from klickverbot c...@klickverbot.at 2011-12-01 15:10:16 PST 
---
https://github.com/D-Programming-Language/phobos/pull/342

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


[Issue 7045] AssertError in std.regex on line 1573

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7045


Trass3r mrmoc...@gmx.de changed:

   What|Removed |Added

 CC||mrmoc...@gmx.de


--- Comment #2 from Trass3r mrmoc...@gmx.de 2011-12-01 17:22:52 PST ---
Why so complicated?

import std.regex;
void main()
{
auto pattern =
regex(r^(import|file|binary|config)\s+([^\(]+)\(?([^\)]*)\)?\s*$);
}

Taken from rdmd.

It fails cause it rejects \(
I suggest to turn line 1573 of regex.d (after case State.Escape:
switch(current))
into 'assert(0, Unsupported escape character \\~cast(char)current);' so one
gets a proper error message.

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


[Issue 1001] print stack trace (in debug mode) when program die

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1001



--- Comment #57 from Trass3r mrmoc...@gmx.de 2011-12-01 17:25:12 PST ---
Seems like stack traces are finally supported on x64. Any plans to add line
numbers to them?

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


[Issue 7045] AssertError in std.regex on line 1573

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7045



--- Comment #3 from Jonathan M Davis jmdavisp...@gmx.com 2011-12-01 17:27:49 
PST ---
It was someone else's program, and I was in a hurry, so I didn't have time to
reduce it properly.

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


[Issue 7046] New: CTFE: append null does nothing

2011-12-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7046

   Summary: CTFE: append null does nothing
   Product: D
   Version: D2
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: destructiona...@gmail.com


--- Comment #0 from Adam D. Ruppe destructiona...@gmail.com 2011-12-01 
18:07:38 PST ---
string[] test() {
string[] ret;

ret ~= null;
ret ~= null;

assert(ret.length == 2); // fails
return ret;
}

void main() {
enum ctfe = test();
}

===
test90.d(7): Error: assert(ret.length == 2u) failed
test90.d(12):called from here: a()

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