[Issue 8888] enums with initializers inside functions cause linker error

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=


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

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com
 OS/Version|Windows |All


--- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-11-19 
02:05:59 PST ---
Related bug:

unittest
{
enum En8143 : int { A = 10, B = 20, C = 30, D = 20 }
enum En8143[][] m3 = to!(En8143[][])([[10, 30], [30, 10]]);
static assert(m3 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
}

This breaks both the win32 and posix linkers.

The following fixes the win32 linker, but it doesn't fix the posix linker:

version(unittest)
{
enum En8143 : int { A = 10, B = 20, C = 30, D = 20 }
enum En8143[][] m3 = to!(En8143[][])([[10, 30], [30, 10]]);
static assert(m3 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
}

unittest
{
// ...
}

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


[Issue 7398] spell checker should suppress error messages

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7398


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

   Keywords||diagnostic, rejects-valid
 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #1 from Don clugd...@yahoo.com.au 2012-11-19 03:30:21 PST ---
This actually compiles in D2 now.

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


[Issue 6058] Contract inheritance causes compiler error

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6058


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

Version|D1  |D1  D2


--- Comment #1 from Don clugd...@yahoo.com.au 2012-11-19 03:39:07 PST ---
Applies equally to D2, if you add the 'override' keyword:

class Dummy {};

class Super
{
public Object test ()
out (obj)  { }
body
{
return new Dummy;
}
}

class Example : Super
{
public override Dummy test ( )
{
return cast(Dummy) super.test;
}
}

void main ( )
{ }
-- D2 --
bug.d(16): Error: cast(const(Object))__result is not an lvalue

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


[Issue 2343] unified function call syntax

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2343


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from Don clugd...@yahoo.com.au 2012-11-19 07:20:24 PST ---
..And indeed UFCS was implemented!

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


[Issue 9005] std.concurrency.spawn should allow `void delegate(Args) shared` for new Tid

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9005



--- Comment #1 from github-bugzi...@puremagic.com 2012-11-19 08:33:45 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/f909a18dca275308c5b24671121e1ee2d2d66170
fix Issue 9005 - std.concurrency.spawn should allow `void delegate(Args)
shared` for new Tid

http://d.puremagic.com/issues/show_bug.cgi?id=9005

https://github.com/D-Programming-Language/phobos/commit/5274ebc0326fe9c6ea5b64622f07e31a7732ca69
Merge pull request #947 from shoo/fix9005

fix Issue 9005 - std.concurrency.spawn should allow `void delegate(Args)
shared` for new Tid

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


[Issue 9045] Feature request for std.asscii = function isNewline

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9045


Dmitry Olshansky dmitry.o...@gmail.com changed:

   What|Removed |Added

 CC||dmitry.o...@gmail.com


--- Comment #6 from Dmitry Olshansky dmitry.o...@gmail.com 2012-11-19 
10:49:39 PST ---
Somewhat related.

Unicode new line sequence is defined as:
\u{A} | \u{B} | \u{C} | \u{D} | \u{85} | \u{2028} | \u{2029} | \u{D A}

Note that sequence '\r\n' counts as one line end.

See the note here for example:
http://www.unicode.org/reports/tr18/#Line_Boundaries

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


[Issue 9046] typeof(T.init) should have the type T

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9046



--- Comment #3 from github-bugzi...@puremagic.com 2012-11-19 13:33:44 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3b4b14eb4294265c569685b7e792e860a76eca55
fix Issue 9046 - typeof(T.init) should have the type T

https://github.com/D-Programming-Language/dmd/commit/4c514b6c77d5c5455a40d7c17ccbd788b1131d25
Merge pull request #1300 from 9rnsr/fix9046

Issue 9046 - typeof(T.init) should have the type T

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


[Issue 9046] typeof(T.init) should have the type T

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9046


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #4 from bearophile_h...@eml.cc 2012-11-19 13:56:15 PST ---
Very good Hara :-) You have fixed so many important corner cases of D.

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


[Issue 9046] typeof(T.init) should have the type T

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9046


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

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #5 from Walter Bright bugzi...@digitalmars.com 2012-11-19 
14:05:53 PST ---
Had to revert:

Testing generated/osx/debug/32/unittest/std/datetime
td/datetime.d(31110): Error: static assert  (isTimePoint!(const(Date))) is
false
ake[2]: *** [generated/osx/debug/32/unittest/std/datetime] Error 1
ake[1]: *** [unittest] Error 2

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


[Issue 7017] Pure inference makes inconsistent result

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7017



--- Comment #2 from github-bugzi...@puremagic.com 2012-11-19 14:32:36 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/cd2b0c924917ab75f3efeaf7eeaff3fa414844ed
fix Issue 7017 - Pure inference makes inconsistent result

https://github.com/D-Programming-Language/dmd/commit/e3daa5ed3e869d793e5c3a74be89842c248346f0
Merge pull request #536 from 9rnsr/fix7017

Issue 7017 - Pure inference makes inconsistent result

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


[Issue 9047] New: Bad error message with power ^^ operator

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9047

   Summary: Bad error message with power ^^ operator
   Product: D
   Version: D2
  Platform: x86
OS/Version: Windows
Status: NEW
  Keywords: diagnostic
  Severity: minor
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2012-11-19 14:43:53 PST ---
void main() {
import std.math;
auto f = (double a, double b) = a ^^ b;
}



DMD 2.061alpha gives:

test.d(3): Error: undefined identifier 'std'

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


[Issue 9048] New: Error: base classes expected instead of typeof when instantiating anonymous class

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9048

   Summary: Error: base classes expected instead of typeof when
instantiating anonymous class
   Product: D
   Version: D2
  Platform: x86_64
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: ogon...@gmail.com


--- Comment #0 from ogondza ogon...@gmail.com 2012-11-19 15:18:45 PST ---
Unlike, regular classes, anonymous classes seems to be impossible to
instantiate when using typeof expression.

This works perfectly:

  new typeof(this)();
  new typeof(new Object())();

But these

  new class typeof(this) {};
  new class typeof(new Object()) {};

give (on v2.060)

  Error: base classes expected instead of typeof
  Error: { members } expected for anonymous class
  Error: found 'typeof' when expecting ';' following statement

It can be worked around aliasing the type first and then instantiating
anonymous class of the aliased type. However, for an anonymous class it is
necessary to instantiate in one expression.

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


[Issue 9048] Error: base classes expected instead of typeof when instantiating anonymous class

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9048


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

   What|Removed |Added

 CC||timon.g...@gmx.ch
   Severity|normal  |enhancement


--- Comment #1 from timon.g...@gmx.ch 2012-11-19 15:35:51 PST ---
It is according to the language specification. It is the same parsing error as
the one present in the following code:

class C{}
class D: typeof(new C){}

This is an enhancement.

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


[Issue 9039] __vector() support in template type resolution

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9039


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2012-11-19 
16:39:41 PST ---
Guess we can close this, then!

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


[Issue 9039] __vector() support in template type resolution

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9039



--- Comment #4 from Manu turkey...@gmail.com 2012-11-19 17:00:23 PST ---
(In reply to comment #3)
 Guess we can close this, then!

Yeah go for it.
Sorry for opening a redundant ticket _

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


[Issue 7017] Pure inference makes inconsistent result

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7017


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 7159] Forward reference when casting auto return method

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7159



--- Comment #2 from github-bugzi...@puremagic.com 2012-11-19 17:55:22 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a9bb24772b47cef1df237c7fdf95c52e3c27c418
fix Issue 7159 - Forward reference when casting auto return method

https://github.com/D-Programming-Language/dmd/commit/2ba68e1db6cf3b2d19dfe4d3f7909ee67948bad3
Merge pull request #535 from 9rnsr/fix5933

Issue 5933  7159 - Resolve forward reference to auto-return member function

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


[Issue 5933] Cannot retrieve the return type of an auto-return member function

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5933



--- Comment #4 from github-bugzi...@puremagic.com 2012-11-19 17:55:32 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5fa49c163dd294944c834e95676b9e71ed22ee82
fix Issue 5933 - Cannot retrieve the return type of an auto-return member
function

https://github.com/D-Programming-Language/dmd/commit/2ba68e1db6cf3b2d19dfe4d3f7909ee67948bad3
Merge pull request #535 from 9rnsr/fix5933

Issue 5933  7159 - Resolve forward reference to auto-return member function

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


[Issue 9046] typeof(T.init) should have the type T

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9046



--- Comment #6 from github-bugzi...@puremagic.com 2012-11-19 19:04:35 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/027b5a0e282d51d238bb696e5f985d462892d8da
Revert revert D2 pull #1300 to re-fix bug 9046

This reverts commit 1619096bfede776f9565395f8cba386c14176b16.

https://github.com/D-Programming-Language/dmd/commit/25e2aea808e081fe713753738501c4bd028b0730
Merge pull request #1303 from 9rnsr/fix9046

Revert revert D2 pull #1300 to re-fix bug 9046

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


[Issue 6207] Mixin template evaluated to string can convert to string mixin expression implicitly

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6207


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

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2012-11-19 
20:30:10 PST ---
See the pull request for more discussion.

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


[Issue 1427] Generated .di files look ugly and are hard to read

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1427



--- Comment #2 from github-bugzi...@puremagic.com 2012-11-19 20:47:32 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/8664473ee4bf6bc5d51e390a697848afe769eced
Issue 1427 - Generated .di files look ugly and are hard to read

https://github.com/D-Programming-Language/dmd/commit/0c93ce24e80087ad2beb59db723955dbd5e2715b
Merge pull request #538 from 9rnsr/fix1427

Issue 1427 - Generated .di files look ugly and are hard to read

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


[Issue 1427] Generated .di files look ugly and are hard to read

2012-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1427


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

   What|Removed |Added

 CC||bugzi...@digitalmars.com
Version|1.020   |D1  D2


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2012-11-19 
23:14:19 PST ---
Fixed for D2 only.

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