[Issue 7666] A function to reverse the items of a tuple

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7666



--- Comment #11 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-04-06 
01:07:30 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1248

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


[Issue 8609] A forward reference error with static arrays

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8609


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

   What|Removed |Added

   Keywords||pull
   Platform|x86 |All
 OS/Version|Windows |All


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-04-06 01:30:32 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1849

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


[Issue 6531] assertion failure in std.range.iota

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6531



--- Comment #5 from Martin Nowak c...@dawg.eu 2013-04-06 01:47:07 PDT ---
 if (pastEnd = end) ++count;

This is definitely wrong. There are only 100 steps in [0, 0.03 ..., 3.0).
The problem was that assert(0.0 + 100 * 0.03 = 3.0) fails because of
floating-point excess precision.

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


[Issue 6312] template instance cannot use argument from enclosing template

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6312


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

   What|Removed |Added

   Keywords||pull


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2013-04-06 02:18:06 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1850

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


[Issue 9889] New: Incorrect rounding on floating value formatting

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9889

   Summary: Incorrect rounding on floating value formatting
   Product: D
   Version: D2
  Platform: All
OS/Version: Windows
Status: NEW
  Keywords: wrong-code
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: verylonglogin@gmail.com


--- Comment #0 from Denis Shelomovskij verylonglogin@gmail.com 2013-04-06 
13:51:19 MSD ---
`std.format.formatValue` uses C's `snprintf` which works this way in `snn.lib`:
---
import std.string;

void main()
{
assert(format(%.1f, 0.09) == 0.1); // Failed, formatted as 0.0
assert(format(%.1f, -0.09) == -0.1); // Failed, formatted as -0.0
assert(format(%.1f, 0.095) == 0.1); // OK
assert(format(%.1f, -0.095) == -0.1); // OK
assert(format(%.1f, 0.094) == 0.1); // Failed, formatted as 0.0
assert(format(%.1f, -0.094) == -0.1); // Failed, formatted as -0.0
}
---


Workaround:
---
real preformatFloating(real n, ubyte digits)
{
immutable k = 10.0L ^^ digits;
return round(n * k) / k;
}
void main()
{
assert(format(%.1f, preformatFloating(0.09, 1)) == 0.1);
}
---

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


[Issue 9417] no size yet for forward reference error with nested structure

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9417


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

   What|Removed |Added

   Keywords||pull, rejects-valid
   Platform|x86_64  |All
 OS/Version|Linux   |All


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-04-06 06:26:28 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1851

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


[Issue 8907] Selective import of a symbol after its first usage causes errors (including ICE)

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8907


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-04-06 06:34:41 PDT ---
The root cause is same as bug 9514, and test cases work with 2.053a.

*** This issue has been marked as a duplicate of issue 9514 ***

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


[Issue 9514] template instance … is not an alias

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9514


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

   What|Removed |Added

 CC||verylonglogin@gmail.com


--- Comment #11 from Kenji Hara k.hara...@gmail.com 2013-04-06 06:34:41 PDT 
---
*** Issue 8907 has been marked as a duplicate of this issue. ***

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


[Issue 4571] Non-null class references/pointers

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4571


bearophile_h...@eml.cc changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX


--- Comment #7 from bearophile_h...@eml.cc 2013-04-06 06:37:46 PDT ---
Closed down by request by Andrei:

http://forum.dlang.org/post/kjp56a$e1s$1...@digitalmars.com

Not-nullable reference types have gained appreciation in almost every type-rich
recently designed languages, as F#, Scala, Rust, and few Java-Like languages
running on the JavaVM. I think all type-rich languages that will be designed in
future will have nonnullable typing.

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


[Issue 8833] Odd error with expression tuples

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8833


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

   What|Removed |Added

   Keywords||pull, rejects-valid


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2013-04-06 06:38:35 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1852

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


[Issue 4265] It should be possible to query template parameters with __traits

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4265


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||k.hara...@gmail.com


--- Comment #8 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-04-06 
06:40:55 PDT ---
(In reply to comment #5)
 I can have a pull ready soon for 2 traits:

I managed to lose the branch where I implemented this. I think I only did it
partially though.

@kenji: If you have this:

template T(Args...) { }
struct S(Args...) { }
alias Tint = T!int;
alias Sint = S!int;

How do you get to the 'S' declaration from the instance? I want to implement
these traits:

static assert(is(__traits(getTemplateSymbol, SInt) == S));
static assert(is(__traits(getTemplateArgs, SInt) == int));

I've tried this in traits.c:

Dsymbol *s = getDsymbol(o);
TemplateInstace *ti = s-isTemplateInstance();

However that only works for Tint, and not for Sint. 's' is actually a
StructDeclaration for Sint, not a TemplateInstance.

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


[Issue 3449] const and invariant struct members do not behave according to spec

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3449


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #23 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-04-06 
07:32:19 PDT ---
Can this be marked as fixed?

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


[Issue 9890] New: Alias This + Static Fields

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9890

   Summary: Alias This + Static Fields
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: regression
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha dsim...@yahoo.com 2013-04-06 08:29:38 PDT ---
Test program:

struct RefCounted(T)
{
T _payload;

ref T refCountedPayload() 
{
return _payload;
}

alias refCountedPayload this;
}

struct S(int x_) 
{
alias x_ x;
}

alias RefCounted!(S!1) Rs;
static assert(Rs.x == 1);

Version = 2.060:  Works
Version = 2.061:
test.d(22): Error: need 'this' for refCountedPayload type ref S!(1)()

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


[Issue 9891] New: Ability to modify immutable using default value of ref/out parameter

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9891

   Summary: Ability to modify immutable using default value of
ref/out parameter
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: accepts-invalid
  Severity: critical
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: verylonglogin@gmail.com


--- Comment #0 from Denis Shelomovskij verylonglogin@gmail.com 2013-04-06 
20:24:13 MSD ---
The following code compiles but should not:
---
immutable int i;

void f(ref int n = i)
{
++n;
}
---

P.S.
Inspired by fixed Issue 9773.

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


[Issue 8698] Forward reference error with interfaces

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8698


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

   What|Removed |Added

   Keywords||pull, rejects-valid


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-04-06 09:32:31 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1853

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


[Issue 8697] Invalid error message: Forward reference of interface

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8697


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

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-04-06 09:32:34 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1853

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


[Issue 8626] Mixin forward reference semantic run leads to inconsistent AST

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8626



--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-04-06 10:33:56 PDT ---
To: David Nadlinger

Is this the problem that you had explained in the forum recently?
If so, it is correctly asserted in dmd source code now.

StructDeclaration::semantic
https://github.com/D-Programming-Language/dmd/pull/1760

ClassDeclaration::semantic and InterfaceDeclaration::semantic
https://github.com/D-Programming-Language/dmd/pull/1822

Therefore, can I mark this RESOLVED FIXED?

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


[Issue 2458] Can't deduce sizeof inner struct inside a template mixin

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2458


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2013-04-06 10:52:17 PDT ---
(In reply to comment #2)
 That works in 2.061, however OP code still doesn't work.

OP code is a dup of bug 9417.

*** This issue has been marked as a duplicate of issue 9417 ***

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


[Issue 9417] no size yet for forward reference error with nested structure

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9417


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

   What|Removed |Added

 CC||2kor...@gmail.com


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2013-04-06 10:52:17 PDT ---
*** Issue 2458 has been marked as a duplicate of this issue. ***

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


[Issue 8626] Mixin forward reference semantic run leads to inconsistent AST

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8626



--- Comment #2 from David Nadlinger c...@klickverbot.at 2013-04-06 10:52:21 
PDT ---
No, this is a much earlier, distinct bug report. However, it is likely related
in terms of the root cause, so it might be fixed just as well. I suppose I have
to re-enable the 7494 test case on LDC to see if it passes – which commits to I
need to back-port to 2.062?

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


[Issue 8626] Mixin forward reference semantic run leads to inconsistent AST

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8626



--- Comment #3 from Kenji Hara k.hara...@gmail.com 2013-04-06 11:05:35 PDT ---
(In reply to comment #2)
 No, this is a much earlier, distinct bug report. However, it is likely related
 in terms of the root cause, so it might be fixed just as well. I suppose I 
 have
 to re-enable the 7494 test case on LDC to see if it passes – which commits to 
 I
 need to back-port to 2.062?

At least #1760 would be necessary. But, other many forward reference bugs fixed
in 2.063 may be related to it . So I'm worried about the possibility that the
back-port does not work...

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


[Issue 9890] Alias This + Static Fields

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9890


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-04-06 
11:12:57 PDT ---
I don't see any static fields here.

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


[Issue 9892] [ICE] forward reference in enum declaration members causes compiler segfault

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9892


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-04-06 
11:21:54 PDT ---
This is also an accepts-invalid, right? (if it compiled).

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


[Issue 9892] New: [ICE] forward reference in enum declaration members causes compiler segfault

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9892

   Summary: [ICE] forward reference in enum declaration members
causes compiler segfault
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: ice
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: k.hara...@gmail.com


--- Comment #0 from Kenji Hara k.hara...@gmail.com 2013-04-06 11:20:26 PDT ---
Test case:

enum
{
a = b, //Segfault!
b
}
void main() {}

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


[Issue 8957] Closure not recognized when passing type with post-blit as lazy parameter

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8957


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

   What|Removed |Added

 CC||ibuc...@ubuntu.com


--- Comment #3 from Iain Buclaw ibuc...@ubuntu.com 2013-04-06 11:25:53 PDT ---
Partial fix.

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

What changes is that 'Foo a' is now added to closureVars for the function
getDg().

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


[Issue 9892] [ICE] forward reference in enum declaration members causes compiler segfault

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9892



--- Comment #2 from Kenji Hara k.hara...@gmail.com 2013-04-06 11:36:04 PDT ---
(In reply to comment #1)
 This is also an accepts-invalid, right? (if it compiled).

I think this code should report forward reference error for 'b'.

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


[Issue 9890] Alias This + Alias Fields

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9890


David Simcha dsim...@yahoo.com changed:

   What|Removed |Added

Summary|Alias This + Static Fields  |Alias This + Alias Fields


--- Comment #2 from David Simcha dsim...@yahoo.com 2013-04-06 11:39:55 PDT ---
Misspoke.  I meant compile-time fields, aliases and possibly others that I
haven't tested.

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


[Issue 9561] Many error messages from std.format

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9561



--- Comment #2 from github-bugzi...@puremagic.com 2013-04-06 12:17:19 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/69c6271fbfb4d20dc13a2f108022255a913c682a
fix Issue 9561 - Many error messages from std.format

https://github.com/D-Programming-Language/dmd/commit/03cf92699fba8b13c11b20a0f993623f183df61c
Merge pull request #1848 from 9rnsr/fix9561

Issue 9561 - Many error messages from std.format

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


[Issue 9561] Many error messages from std.format

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9561


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

   What|Removed |Added

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


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


[Issue 9885] IFTI should consider known tuple types.

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9885



--- Comment #2 from github-bugzi...@puremagic.com 2013-04-06 13:00:30 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/374ff5e5b961f57b6964f62375315bf0ac1f863a
fix Issue 9885 - IFTI should consider known tuple types

https://github.com/D-Programming-Language/dmd/commit/2b88974f7ff127de02ae6a21dec5ebd08774ff5b
Merge pull request #1847 from 9rnsr/fix9885

Issue 9885 - IFTI should consider known tuple types

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


[Issue 9885] IFTI should consider known tuple types.

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9885


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

   What|Removed |Added

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


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


[Issue 8957] Closure not recognized when passing type with post-blit as lazy parameter

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8957



--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2013-04-06 
13:04:05 PDT ---
(In reply to comment #3)
 Partial fix.

What is left undone?

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


[Issue 8957] Closure not recognized when passing type with post-blit as lazy parameter

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8957



--- Comment #5 from github-bugzi...@puremagic.com 2013-04-06 13:05:09 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bea22e33b11ac8efd07081f43fac1d54d2a9aab2
Merge pull request #1854 from ibuclaw/issue8957

Check declaration initializer expressions for nested refs.

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


[Issue 9892] [ICE] forward reference in enum declaration members causes compiler segfault

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9892


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

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2013-04-06 
13:24:03 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1855

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


[Issue 9417] no size yet for forward reference error with nested structure

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9417



--- Comment #3 from github-bugzi...@puremagic.com 2013-04-06 16:09:05 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/34cd64232af44baba392f7f860f9603750ef82c9
fix Issue 9417 - no size yet for forward reference error with nested
structure

https://github.com/D-Programming-Language/dmd/commit/5159d931eab483427bf6cc60b9b39dcdabc24c6c
Merge pull request #1851 from 9rnsr/fix9417

Issue 9417 - no size yet for forward reference error with nested structure

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


[Issue 9417] no size yet for forward reference error with nested structure

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9417


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

   What|Removed |Added

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


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


[Issue 8833] Odd error with expression tuples

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8833



--- Comment #4 from github-bugzi...@puremagic.com 2013-04-06 16:12:37 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2d9929c13637e111c16f174da1735a0bf31e0f04
fix Issue 8833 - Odd error with expression tuples

https://github.com/D-Programming-Language/dmd/commit/5036f158eb45d35c59db5b8c85aef152cd38dee4
Merge pull request #1852 from 9rnsr/fix8833

Issue 8833 - Odd error with expression tuples

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


[Issue 8833] Odd error with expression tuples

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8833


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

   What|Removed |Added

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


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


[Issue 8957] Closure not recognized when passing type with post-blit as lazy parameter

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8957



--- Comment #6 from Iain Buclaw ibuc...@ubuntu.com 2013-04-06 16:14:57 PDT ---
(In reply to comment #4)
 (In reply to comment #3)
  Partial fix.
 
 What is left undone?

Detection in FuncDeclaration:: needsClosure.

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


[Issue 8697] Invalid error message: Forward reference of interface

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8697



--- Comment #2 from github-bugzi...@puremagic.com 2013-04-06 16:33:14 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f5fe61eac2cdbfe5976133ac9143f64cdda49c50
fix Issue 8697 - Invalid error message: Forward reference of interface

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


[Issue 8698] Forward reference error with interfaces

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8698



--- Comment #2 from github-bugzi...@puremagic.com 2013-04-06 16:33:19 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/30b4252dff7d8bff734413dd8c521982b7cd0528
fix Issue 8698 - Forward reference error with interfaces

https://github.com/D-Programming-Language/dmd/commit/d7770a099dfc9b6059a8be4693fc46c44af0f5ba
Merge pull request #1853 from 9rnsr/fix8698

Issue 8698 - Forward reference error with interfaces

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


[Issue 8698] Forward reference error with interfaces

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8698


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

   What|Removed |Added

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


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


[Issue 8697] Invalid error message: Forward reference of interface

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8697


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

   What|Removed |Added

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


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


[Issue 9893] New: [ELF] export should affect symbol visibility

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9893

   Summary: [ELF] export should affect symbol visibility
   Product: D
   Version: unspecified
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: c...@dawg.eu


--- Comment #0 from Martin Nowak c...@dawg.eu 2013-04-06 18:38:20 PDT ---
There are a number of good reasons to switch to explicit export,
i.e. normal symbols use hidden visibility and exported symbols use default
visibility.

- Windows compatibility
- less performance impact for PIC as only exported symbols require an
indirection
- faster symbol lookup reduces the load time
- more possibilities for link time optimizations
- inlining visible functions breaks interposition

For a more detailed reading see
http://gcc.gnu.org/wiki/Visibility
http://www.akkadia.org/drepper/dsohowto.pdf

NB:
As of now libphobos2.so exports 14100 symbols and 87139 with unittests compiled
in.

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


[Issue 922] export keyword causes undefined references on linux

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=922


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

   What|Removed |Added

 CC||c...@dawg.eu


--- Comment #2 from Martin Nowak c...@dawg.eu 2013-04-06 18:39:18 PDT ---
Still happens, looks like the Windows mangling is applied to ELF.

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


[Issue 6312] template instance cannot use argument from enclosing template

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6312



--- Comment #3 from github-bugzi...@puremagic.com 2013-04-06 18:47:06 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/db5e6087a2ed742bb0ce024dc5154075cd54df43
fix Issue 6312 - template instance cannot use argument from enclosing template

https://github.com/D-Programming-Language/dmd/commit/f946ede5e9b597c6e32c1e66b311460204532cd9
Merge pull request #1850 from 9rnsr/fix6312

Issue 6312 - template instance cannot use argument from enclosing template

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


[Issue 9816] Export is mostly broken

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9816


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

   What|Removed |Added

 CC||c...@dawg.eu


--- Comment #1 from Martin Nowak c...@dawg.eu 2013-04-06 19:05:59 PDT ---
(In reply to comment #0)
 Created an attachment (id=1203) [details]
 repro case
 
 Here is a list of all things wrong with export:
 
 32  64 bit issues:
 1) Exporting a global variable leads to a linker error
What error?
 2) Exporting thread local variables should be an error (at least it is in c++)
Yes.
 3) The module info should be exported as soon the module has any exported
 symbols
 4) __gshared members of a class are not exported
Bug.
 5) The TypeInfo Object of the TestClass is not exported
 6) The TypeInfo Object of TestStruct is not exported
 
Any compiler generated symbol referenced by an exported symbol should be
exported too, e.g. ModuleInfos, TypeInfos, opEquals and such.

 See attached repro case. If this repro case actually compiles and runs dll
 support should be sufficient to support a shared runtime.
Nice.

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


[Issue 9894] New: Member func of templated struct can't pass varargs to templated member func

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9894

   Summary: Member func of templated struct can't pass varargs to
templated member func
   Product: D
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Keywords: rejects-valid
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: cbkbbej...@mailinator.com


--- Comment #0 from Nick Sabalausky cbkbbej...@mailinator.com 2013-04-06 
19:34:17 PDT ---
struct Foo(TArgs...) {
 void func(TArgs args) { func2(args); }
 void func2()(TArgs args) {}
}

void main() {
 Foo!(int).func(5);
}

DMD output:
test.d(2): Error: template test.Foo!(int).Foo.func2 does not match any function
template declaration. Candidates are:
test.d(3):test.Foo!(int).Foo.func2()(TArgs args)
test.d(2): Error: template test.Foo!(int).Foo.func2()(TArgs args) cannot deduce
template function from argument types !()(int)
test.d(7): Error: template instance test.Foo!(int) error instantiating

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


[Issue 9894] Member func of templated struct can't pass varargs to templated member func

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9894



--- Comment #1 from Nick Sabalausky cbkbbej...@mailinator.com 2013-04-06 
19:36:59 PDT ---
Note that if func2 is *NOT* a template, then it works.

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


[Issue 9894] Member func of templated struct can't pass varargs to templated member func

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9894



--- Comment #2 from Nick Sabalausky cbkbbej...@mailinator.com 2013-04-06 
19:45:48 PDT ---
Workaround:

struct Foo(TArgs...) {
void func(TArgs args) { this.workaround(args); }
void func2()(TArgs args) {}
}
void workaround(Struct, TArgs...)(Struct s, TArgs args)
{
s.func2!()(args);
}

void main() {
Foo!(int) f;
f.func(5);
}

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


[Issue 9868] Hash iteration should support counter variable

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9868


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

   What|Removed |Added

 CC||c...@dawg.eu


--- Comment #1 from Martin Nowak c...@dawg.eu 2013-04-06 20:33:15 PDT ---
The problem is there is no index in an unsorted map.
But using the known counter from array foreach makes it appear as if there was
a relation between i and key/value.
I don't think it's worth the possible confusion.

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


[Issue 6312] template instance cannot use argument from enclosing template

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6312


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

   What|Removed |Added

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


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


[Issue 9816] Export is mostly broken

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9816



--- Comment #2 from Martin Nowak c...@dawg.eu 2013-04-06 21:12:36 PDT ---
(In reply to comment #1)
 (In reply to comment #0)
  2) Exporting thread local variables should be an error (at least it is in 
  c++)
 Yes.
Actually no, at least ELF supports linking/accessing a TLS value of another
shared library.
AFAIK Windows also uses an index per DLL for TLS access so it should be
possible to link/relocate against them.

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