[Issue 6620] argument evaluation order inversed for extern(C)

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6620


Johannes Pfau johannesp...@gmail.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||johannesp...@gmail.com
 Resolution|INVALID |


--- Comment #2 from Johannes Pfau johannesp...@gmail.com 2014-02-13 00:22:04 
PST ---
The pull request was accepted, LTR evaluation is now required:
https://github.com/D-Programming-Language/dlang.org/pull/6

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


[Issue 12149] New: Win RDMD: .exe no longer auto-added when -of is used

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12149

   Summary: Win RDMD: .exe no longer auto-added when -of is used
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: regression
  Priority: P2
 Component: tools
AssignedTo: nob...@puremagic.com
ReportedBy: cbkbbej...@mailinator.com


--- Comment #0 from Nick Sabalausky cbkbbej...@mailinator.com 2014-02-13 
00:28:08 PST ---
 rdmd -ofprog prog.d

On 2.064.2 and below, that produces prog.exe. On 2.065-b3 it produces prog
with no .exe extension. Then it tries to run prog.exe which, if you're lucky
doesn't already exist, or if you're unlucky already exists as an older version
of your program.

This appears to occur because of the change where RDMD now appends .tmp to
the -of arg it passes DMD, and then removes the .tmp extension after DMD
succeeds. DMD sees the .tmp extension and therefore decides it doesn't need
to auto-add a .exe extension.

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


[Issue 10514] Constructor declaration grammar is incorrect

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10514


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

   What|Removed |Added

   Keywords||pull
Version|unspecified |D2


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2014-02-13 00:34:15 PST ---
https://github.com/D-Programming-Language/dlang.org/pull/500

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


[Issue 12149] Win RDMD: .exe no longer auto-added when -of is used

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12149



--- Comment #1 from Nick Sabalausky cbkbbej...@mailinator.com 2014-02-13 
00:45:54 PST ---
Pull request: https://github.com/D-Programming-Language/tools/pull/114

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


[Issue 2415] DMD allows void foo(int i, ); function definition

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=2415


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


--- Comment #5 from Kenji Hara k.hara...@gmail.com 2014-02-13 00:49:44 PST ---
This is the feature, not a bug.

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


[Issue 3597] Need single source for parser and documentation grammar.

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3597


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

   What|Removed |Added

 Status|NEW |RESOLVED
Version|unspecified |D2
 Resolution||FIXED


--- Comment #5 from Kenji Hara k.hara...@gmail.com 2014-02-13 00:47:39 PST ---
Consolidated grammar page is added in website.

https://github.com/D-Programming-Language/dlang.org/blob/master/grammar.dd

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


[Issue 11019] fwd reference : legal in C++, CT error in D (unable to resolve forward reference in definition)

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11019


Max Samukha samu...@voliacable.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||samu...@voliacable.com
 Resolution||FIXED


--- Comment #1 from Max Samukha samu...@voliacable.com 2014-02-13 01:11:38 
PST ---
Works with dmd 2.065, provided View in B is tagged with 'override'.

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


[Issue 12150] New: Regression (2.063): char[] implicitly converts to string in .dup expression

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12150

   Summary: Regression (2.063): char[] implicitly converts to
string in .dup expression
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: accepts-invalid
  Severity: regression
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-13 
02:10:17 PST ---
-
int foo(string arg)
{
return foo(arg.dup);  // calls itself, stack overflow!
}

void main()
{
foo(foo);
}
-

Note that storing the .dup to a variable first avoids the accepts-invalid:

-
int foo(string arg)
{
auto duped = arg.dup;
return foo(duped);  // NG, caught at compile-time
}

void main()
{
foo(foo);
}
-

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


[Issue 12150] Regression (2.063): char[] implicitly converts to string in .dup expression

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12150



--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-13 
02:12:32 PST ---
Here's the slightly reduced example code of where I ran into the issue:

-
import std.file;

int parseCode(string code)
{
return parseCode(code.dup);
}

int parseCode(ubyte[] code)
{
return 0;
}

void main()
{
parseCode(cast(ubyte[])std.file.read(test.d));  // ok
parseCode(foo);  // stack overflow
}
-

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


[Issue 5753] Disallow map() of void function

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5753



--- Comment #6 from github-bugzi...@puremagic.com 2014-02-13 02:39:32 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/cef8d54a7b2ef853917af471af0a5657914b8578
Fix Issue 5753 - Disallow map with void function.

https://d.puremagic.com/issues/show_bug.cgi?id=5753

https://github.com/D-Programming-Language/phobos/commit/b9376581bd42ac30a9761b8ad5f1a8ed40de866e
Merge pull request #1917 from Poita/bug5753

Fix Issue 5753 - Disallow map with void function.

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


[Issue 5753] Disallow map() of void function

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5753


Peter Alexander peter.alexander...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 12137] [REG DMD2.065-b3] Huge decline in performance

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12137


Richard Webb we...@beardmouse.org.uk changed:

   What|Removed |Added

 CC||we...@beardmouse.org.uk


--- Comment #8 from Richard Webb we...@beardmouse.org.uk 2014-02-13 03:12:42 
PST ---
(In reply to comment #7)

 Is it possible the snn.lib from the 2.064 zip is also the old snn.lib?
 


The snn.lib in 2.064.2 is 555KB and the one in the 2.065.0-b3 zip is 561KB.
From what I recall, the smaller one is the one with the malloc fixes.

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


[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12146



--- Comment #5 from Martin Nowak c...@dawg.eu 2014-02-13 05:41:47 PST ---
I think we should try to solve this by only creating one TypeInfo per struct,
but always generate it, when the struct is defined. If the TypeInfo is
referenced somewhere else, it will need to link against the module that defined
the struct.

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


[Issue 7555] ddoc whitespace issues due to version tags

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7555


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

   What|Removed |Added

   Keywords||pull


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2014-02-13 06:38:14 PST ---
D2 pull:
https://github.com/D-Programming-Language/dmd/pull/3254

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


[Issue 12150] Regression (2.063): char[] implicitly converts to string in .dup expression

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12150



--- Comment #2 from Kenji Hara k.hara...@gmail.com 2014-02-13 07:01:39 PST ---
This is an intended change. See issue 9656.

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


[Issue 12149] Win RDMD: .exe no longer auto-added when -of is used

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12149


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2014-02-13 07:11:30 PST ---
master branch:
https://github.com/D-Programming-Language/tools/commit/24823d08bbcfaf601091ab1a30132a168803bdfe

2.065 branch:
https://github.com/D-Programming-Language/tools/commit/9236321d3753790797ce28691d28970e76db7b2f

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


[Issue 1668] std.stream readf can't read int, nan, inf as floats

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1668



--- Comment #3 from Blake Anderton rbander...@gmail.com 2014-02-13 07:27:07 
PST ---
https://github.com/D-Programming-Language/phobos/pull/1929

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


[Issue 12150] Regression (2.063): char[] implicitly converts to string in .dup expression

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12150



--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-13 
07:28:15 PST ---
But the regression is likely unintended. Did anyone actually request for the
feature in Issue 9656? Magical built-in behavior is something we should avoid
IMHO, exactly because of issues like this..

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


[Issue 12150] Regression (2.063): char[] implicitly converts to string in .dup expression

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12150


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #4 from bearophile_h...@eml.cc 2014-02-13 07:31:38 PST ---
(In reply to comment #3)
 Magical built-in behavior is something we should avoid
 IMHO, exactly because of issues like this..

On the other hand the change of Issue 9656 seems useful.

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


[Issue 12150] Regression (2.063): char[] implicitly converts to string in .dup expression

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12150



--- Comment #6 from Kenji Hara k.hara...@gmail.com 2014-02-13 07:37:52 PST ---
(In reply to comment #3)
 But the regression is likely unintended. Did anyone actually request for the
 feature in Issue 9656? Magical built-in behavior is something we should avoid
 IMHO, exactly because of issues like this..

That is not magic. It is consistent with the implicit conversion for the
returned value from pure function.

E[] dup(E)(const(E)[] src) pure
{
E[] r;
r.reserve(src.length);
foreach (ref e; src)
r ~= e;
return r;
}
int foo(string arg)
{
return foo(dup(arg));
// returned char[] is implicitly convertible to string
}
void main()
{
foo(foo);
}

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


[Issue 12150] Regression (2.063): char[] implicitly converts to string in .dup expression

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12150


Jakob Ovrum jakobov...@gmail.com changed:

   What|Removed |Added

 CC||jakobov...@gmail.com


--- Comment #5 from Jakob Ovrum jakobov...@gmail.com 2014-02-13 07:35:19 PST 
---
(In reply to comment #3)
 But the regression is likely unintended. Did anyone actually request for the
 feature in Issue 9656? Magical built-in behavior is something we should avoid
 IMHO, exactly because of issues like this..

I might be missing something, but where is the regression? The example you
posted doesn't seem to be a regression because char[] isn't implicitly
convertible to either `string` or `ubyte[]`, so surely the code would simply
not compile.

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


[Issue 12151] New: Diagnostic for .dup/.idup should emit code before the internal rewrite

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12151

   Summary: Diagnostic for .dup/.idup should emit code before the
internal rewrite
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: diagnostic
  Severity: minor
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-13 
07:45:54 PST ---
void main()
{
char[] a = ;
char[] b = .idup;
}

test.d(3): Error: cannot implicitly convert expression () of type string to
char[]
test.d(4): Error: cannot implicitly convert expression (_adDupT(typeid(string),
)) of type string to char[]

The second line should print:

test.d(4): Error: cannot implicitly convert expression (.idup) of type string
to char[]

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


[Issue 10514] Constructor declaration grammar is incorrect

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10514



--- Comment #2 from github-bugzi...@puremagic.com 2014-02-13 09:39:10 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org

https://github.com/D-Programming-Language/dlang.org/commit/42a412344c5ce006cba243e8e98ed9da2ce0c5e5
fix Issue 10514 - Constructor declaration grammar is incorrect

Same issue is in ConstructorTemplate, Destructor, Postblit, Allocator,
Deallocator,
StaticConstructor, StaticDestructor, SharedStaticConstructor, and
SharedStaticDestructor.

https://github.com/D-Programming-Language/dlang.org/commit/0ee5eefb9c88d6e6b38c08abb6c06885b0a4b83f
Merge pull request #500 from 9rnsr/fix10514

Issue 10514 - Constructor declaration grammar is incorrect

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


[Issue 12149] Win RDMD: .exe no longer auto-added when -of is used

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12149



--- Comment #3 from github-bugzi...@puremagic.com 2014-02-13 09:37:00 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/tools

https://github.com/D-Programming-Language/tools/commit/99d3901701253396821c2d9f63d763ee1299fb80
Add test-case for Issue 12149 - RDMD -of switch doesn't append .exe to an
executable on Windows.

https://github.com/D-Programming-Language/tools/commit/a4294fa0b11bfba8412a6fc198edfa7677d50938
Merge pull request #116 from AndrejMitrovic/Test12149

Add test-case for Issue 12149 - RDMD -of switch doesn't append .exe to an
executable on Windows.

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


[Issue 10514] Constructor declaration grammar is incorrect

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10514


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 3959] can't mixin result of templated static struct method

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3959


Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

   Severity|normal  |regression


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


[Issue 3959] can't mixin result of templated static struct method

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3959


Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #2 from Vladimir Panteleev thecybersha...@gmail.com 2014-02-13 
19:59:10 EET ---
This bug appears to only manifest in 2.040 (not in 2.039 or 2.041).

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


[Issue 6703] Unexpected OPTLINK Termination at EIP=0042785B

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6703


Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #4 from Vladimir Panteleev thecybersha...@gmail.com 2014-02-13 
20:03:45 EET ---
Does not reproduce with OPTLINK 8.00.15.

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


[Issue 9477] String (and array) comparisons are needlessly very slow

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9477


Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


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


[Issue 12153] New: Ternary operator on static array lvalues creates copy

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12153

   Summary: Ternary operator on static array lvalues creates copy
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: wrong-code
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: thecybersha...@gmail.com


--- Comment #0 from Vladimir Panteleev thecybersha...@gmail.com 2014-02-13 
21:39:54 EET ---
void main()
{
int[1] i, j; 
bool b = true;
(b ? i : j) = [4];
assert(i == [4]);
}

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


[Issue 11321] Can't link _D6object15__T7reserveTyaZ7reserveFNaNbNeKAyamZm

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11321


deadalnix deadal...@gmail.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


--- Comment #11 from deadalnix deadal...@gmail.com 2014-02-13 13:32:19 PST ---
(In reply to comment #10)
 (In reply to comment #8)
  This seems to be fixed in 46b294ff2d (fixes 11239).
  Someone confirm  close?
 
 I suspect this has changed the behavior of the bug, but didn't solved it. I'll
 run a Dustmite over the weekend and see where it goes.

Forgot to update the bug report.

The bug do not manifest in the beta released recently. This can be closed.

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


[Issue 12154] New: Address of a member function doesn't tell about this - breaks std.concurrency

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12154

   Summary: Address of a member function doesn't tell about this -
breaks std.concurrency
   Product: D
   Version: D2
  Platform: All
OS/Version: All
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 2014-02-13 
13:51:58 PST ---
http://stackoverflow.com/questions/21765885/the-this-pointer-and-message-receiving-in-d/21766122#21766122


Currently, this compiles:

class Foo {
void bar(int) {}
}

static assert(is(typeof(Foo.bar) == void function(int)));


But if you actually try to use it, you get a problem:

void main() {
void function(int) fn = Foo.bar;
fn(10);
}
$ ./test52
Segmentation fault


Being a non-static member variable, it expects a context pointer to be passed
to it as well, but there's no indication of that in the returned type.

I think it should actually be typed void function(int, Foo); or something like
that. Otherwise, generic code that tries to look at the type,
std.concurrency.receive for example, can try to blindly use it and get runtime
crashes where i think it should be a type system error.

It also cannot be a delegate at this point because the context pointer is
unknown.


The exception is if you are already in a non-static method and refer to it:

class Foo {
void bar(int a) {
import std.stdio;
writeln(a);
}
}
class Baz : Foo {
override void bar(int) {
Foo.bar(1); // calls the method from the super class
}
}


In this case, the address-of operator already yields void delegate(int a) -
which works and makes sense.

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


[Issue 10929] [CTFE] Destructor errornously gets called on NRVO-ed structs?

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10929



--- Comment #2 from github-bugzi...@puremagic.com 2014-02-13 15:50:20 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e99cc57f129ca7370e4b07019e843ef220028d9c
fix Issue 10929 - [CTFE] Destructor errornously gets called on NRVO-ed structs?

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


[Issue 12045] Destructor call omitted for NRVO'd struct in exceptional case

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12045


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

   What|Removed |Added

   Keywords||pull, wrong-code
Version|unspecified |D2


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2014-02-01 08:41:22 PST ---
https://github.com/D-Programming-Language/dmd/pull/3184

--- Comment #2 from github-bugzi...@puremagic.com 2014-02-13 15:50:10 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3dc08b365d91f4cb70c7c31418c040ad6d4493a0
fix Issue 12045 - Destructor call omitted for NRVO'd struct in exceptional case

https://github.com/D-Programming-Language/dmd/commit/a9ec782edfb80f8732cc5b1e903f85cab0959c7b
Merge pull request #3184 from 9rnsr/fix12045

Issue 12045 - Destructor call omitted for NRVO'd struct in exceptional case

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


[Issue 12144] [REG DMD2.064] Unresolved xopEquals when referenced by dynamic array constructor

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12144


Martin Nowak c...@dawg.eu changed:

   What|Removed |Added

   Keywords||link-failure, pull


--- Comment #3 from Martin Nowak c...@dawg.eu 2014-02-13 16:42:28 PST ---
https://github.com/D-Programming-Language/dmd/pull/3255

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


[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12146


Martin Nowak c...@dawg.eu changed:

   What|Removed |Added

   Keywords||pull


--- Comment #6 from Martin Nowak c...@dawg.eu 2014-02-13 16:41:25 PST ---
The root cause for this bug was, that the TypeInfo
for structs can only be generated after semantic3 for
that struct was run. This is not possible if the TypeInfo
is needed during the obj generation pass, e.g. because
it is referenced by an array TypeInfo.

https://github.com/D-Programming-Language/dmd/pull/3255

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


[Issue 5521] DMD 2.051 does not report column number of errors.

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5521


Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 10929] [CTFE] Destructor errornously gets called on NRVO-ed structs?

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10929


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

   What|Removed |Added

   Keywords||wrong-code
 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 12045] Destructor call omitted for NRVO'd struct in exceptional case

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12045


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 12155] New: Better line and column numbers for missing semicolon

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12155

   Summary: Better line and column numbers for missing semicolon
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2014-02-13 17:54:55 PST ---
D forces on the programmer the burden to end lines of code with a semicolon
(unline Scala, Go and other language), this is supposed to offer better error
messages. But if I forget a semicolon in this code:


import std.stdio;
void main() {
writeln(hello )
/*
...
*/
// ...
writeln(world);
}


Using the -vcolumns dmd switch I receive this error message:

test.d(8,5): Error: found 'writeln' when expecting ';' following statement

In such cases I'd like the compiler to give an error message with line number
and column number closer to where the semicolon should go, to help me fix the
code faster:

test.d(3,21): Error: found 'writeln' when expecting ';' following statement

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


[Issue 5521] DMD 2.051 does not report column number of errors.

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5521


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #3 from bearophile_h...@eml.cc 2014-02-13 17:55:27 PST ---
I am already using this, and it looks good. I have opened Issue 12155 for an
improvement.

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


[Issue 12071] Algebraic won't take delegate returning structure

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12071



--- Comment #3 from github-bugzi...@puremagic.com 2014-02-13 19:18:39 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/1323bd4f00c2dec3fc41f105957a521a9daa84ae
fix Issue 12071 - Algebraic won't take delegate returning structure

Use `Variant` rather than `VariantN` in order to pack arguments and returned
value in opCall.

https://github.com/D-Programming-Language/phobos/commit/3089fb2d0bda4215aba712a3b6a7bef8a5a2a20c
Merge pull request #1909 from 9rnsr/fix12071

[REG2.065a] Issue 12071 - Algebraic won't take delegate returning structure

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


[Issue 12071] Algebraic won't take delegate returning structure

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12071


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

   What|Removed |Added

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


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


[Issue 12156] New: static import of std.ascii in std.regex causes conflict

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12156

   Summary: static import of std.ascii in std.regex causes
conflict
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: thecybersha...@gmail.com


--- Comment #0 from Vladimir Panteleev thecybersha...@gmail.com 2014-02-14 
07:13:18 EET ---
// test.d /
import std.regex;
import b;

ascii a;

/// b.d ///
alias ascii = char;

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


[Issue 8580] VariantN.peek works wrongly for types with size bigger than maxDataSize template argument

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8580


Kapps opantm2+db...@gmail.com changed:

   What|Removed |Added

   Keywords||pull
 CC||opantm2+db...@gmail.com


--- Comment #1 from Kapps opantm2+db...@gmail.com 2014-02-13 21:16:57 PST ---
https://github.com/D-Programming-Language/phobos/pull/1934

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


[Issue 11981] unittest 'host' deadlock

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11981


Brad Roberts bra...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #20 from Brad Roberts bra...@puremagic.com 2014-02-13 21:23:41 
PST ---
I'll go ahead and mark this resolved.  Given it's relative rarity it's hard to
state conclusively that it's fixed, but it certainly sounds like it might be
based on the change description.

That said, we need to be MUCH more careful about what code is executed in the
context of signal handlers as it's a very narrow set of valid apis.  I'll bet
that we're technically violating the list in a number of ways and are just
getting away with it most of the time.

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


[Issue 7555] ddoc whitespace issues due to version tags

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7555



--- Comment #3 from github-bugzi...@puremagic.com 2014-02-13 21:36:11 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e55695e692bdcad39ea4af4851f0f33a3dead50d
fix Issue 7555 - ddoc whitespace issues due to version tags

https://github.com/D-Programming-Language/dmd/commit/e1b18fdd286036dde31bd355bc9730f26991c491
Merge pull request #3254 from 9rnsr/fix7555

Issue 7555 - ddoc whitespace issues due to version tags

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


[Issue 12157] New: Variant opEquals always returns false for classes.

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12157

   Summary: Variant opEquals always returns false for classes.
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: ASSIGNED
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: opantm2+db...@gmail.com
ReportedBy: opantm2+db...@gmail.com


--- Comment #0 from Kapps opantm2+db...@gmail.com 2014-02-13 22:02:00 PST ---
Sample:

import std.variant;

class Foo {
int a;
}

void main() {
Foo f = new Foo();
Variant v = f;
assert(v == f);
}


Because the check for if it's possible checks if typeof T.init == T.init, which
is a compiler error for classes as it compares to null.

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


[Issue 10958] std.variant : Variant and Algebraic can't use a type when sizeof == 0

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10958


Kapps opantm2+db...@gmail.com changed:

   What|Removed |Added

   Keywords||pull
 CC||opantm2+db...@gmail.com
 AssignedTo|nob...@puremagic.com|opantm2+db...@gmail.com


--- Comment #1 from Kapps opantm2+db...@gmail.com 2014-02-13 22:33:10 PST ---
https://github.com/D-Programming-Language/phobos/pull/1936

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


[Issue 12156] static import of std.ascii in std.regex causes conflict

2014-02-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12156


Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Vladimir Panteleev thecybersha...@gmail.com 2014-02-14 
09:30:05 EET ---
https://github.com/D-Programming-Language/phobos/pull/1935

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