[Issue 7176] Lambda = syntax for function and methods too

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



--- Comment #9 from Jacob Carlborg d...@me.com 2012-07-18 23:20:18 PDT ---
(In reply to comment #8)

 On the other hand, a lot of the small functions I write are boilerplate such 
 as
 property getters and forwarding functions in decorators, so maybe instead of a
 special lambda syntax, what I really want is a few metaprograms to write those
 functions for me.

I wouldn't mind some kind of property shortcut, like this:

class Foo
{
@property int bar;
}

Is lowered to this:

class Foo
{
private int bar_;

@property int bar () { return bar_; }
@property int bar (int value) { return bar_ = value; }
}

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


[Issue 4405] all function - returns whether predicate is true for all elements in a range

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


Brad Anderson e...@gnuk.net changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 CC||e...@gnuk.net
 Resolution||FIXED


--- Comment #8 from Brad Anderson e...@gnuk.net 2012-07-19 00:06:58 PDT ---
This has been merged.

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


[Issue 2006] Empty array literals with explicit type implicitly convert to any array type

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



--- Comment #12 from github-bugzi...@puremagic.com 2012-07-19 00:14:06 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/82700b3d2cf466cd69f57491a759a14e101467ac
Issue 2006 - Empty array literals with explicit type implicitly convert to
anything

ArrayLiteralExp::implicitConvTo defaults to MATCHexact, and when there are no
parameters it is never corrected.

https://github.com/D-Programming-Language/dmd/commit/9268d6fb1bedf9d931eadb5adf4067698b0d1e19
Merge pull request #691 from yebblies/issue2006

Issue 2006 - Empty array literals with explicit type implicitly convert to any
array type

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


[Issue 8191] cstream.printf is completely unusable on x86_64

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


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

   What|Removed |Added

 CC||ibuc...@ubuntu.com


--- Comment #1 from Iain Buclaw ibuc...@ubuntu.com 2012-07-19 04:41:28 PDT ---
This is because printf in std.stream is 32bit-centric:


  size_t printf(const(char)[] format, ...) {
va_list ap;
ap = cast(va_list) format;
ap += format.sizeof;
return vprintf(format, ap);
  }


on x86_64, this would pass vprintf garbage.

Regards

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


[Issue 8191] cstream.printf is completely unusable on x86_64

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



--- Comment #2 from Iain Buclaw ibuc...@ubuntu.com 2012-07-19 04:59:22 PDT ---
https://github.com/D-Programming-Language/phobos/pull/704

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


[Issue 6966] cannot create qualified type from tuple entry

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


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

   What|Removed |Added

   Keywords||pull, wrong-code
   Platform|Other   |All
 OS/Version|Linux   |All


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2012-07-19 06:10:48 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1055

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


[Issue 8312] Too many error messages with a writeln of fixed size array

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


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

   What|Removed |Added

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


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2012-07-19 08:03:32 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1057

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


[Issue 2006] Empty array literals with explicit type implicitly convert to any array type

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


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

Version|D1  D2 |D1


--- Comment #13 from yebblies yebbl...@gmail.com 2012-07-20 01:06:50 EST ---
Fixed for D2 only.

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


[Issue 8400] static array type cannot interpret dynamic array length

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


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

   What|Removed |Added

   Keywords||pull, rejects-valid


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-07-19 08:49:18 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1058

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


[Issue 7322] Taking address of deprecated functions isn't refused

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



--- Comment #4 from Kenji Hara k.hara...@gmail.com 2012-07-19 08:57:10 PDT ---
(In reply to comment #3)
 If foo(int) instead of foo(float) is deprecated, then an error is issued even
 though it should be possible to take the address of the undeprecated function.
 
 (I've been having similar problems trying to fix issue 144; in these
 situtations, I think AddrExp::semantic is too early in the compilation process
 for applying fixes that may be affected by overload resolution.)

An example that accidentally rejected with current git head:

deprecated int foo(float a) { return 1; }
int foo(int a) { return 0; }

void main()
{
int function(float) fp1 = foo;
// test.d(10): Error: function test.foo is deprecated  - Bad!
}

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


[Issue 7322] Taking address of deprecated functions isn't refused

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



--- Comment #5 from github-bugzi...@puremagic.com 2012-07-19 09:00:18 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bdb1f13fa9124a56dda0b36697b394e890758241
Revert Merge pull request #670 from yebblies/issue7322

This reverts commit d5dc77452b7f6d0c0768bf33ff3f8172fc0cc482, reversing
changes made to 00778d310b6980ac7068398f4dac22aa4860b8d4.

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


[Issue 6458] Multibyte char literals shouldn't implicitly convert to char

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


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

   What|Removed |Added

Version|D2  |D1


--- Comment #14 from Kenji Hara k.hara...@gmail.com 2012-07-19 09:12:46 PDT 
---
D2 is fixed, but D1 also has same issue.

Pull request for D1:
https://github.com/D-Programming-Language/dmd/pull/1056

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


[Issue 2006] Empty array literals with explicit type implicitly convert to any array type

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



--- Comment #14 from Kenji Hara k.hara...@gmail.com 2012-07-19 09:13:24 PDT 
---
Pull request for D1:
https://github.com/D-Programming-Language/dmd/pull/1056

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


[Issue 7322] Taking address of deprecated functions isn't refused

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


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

   Keywords|pull|
 AssignedTo|yebbl...@gmail.com  |nob...@puremagic.com


--- Comment #6 from yebblies yebbl...@gmail.com 2012-07-20 02:27:42 EST ---
The deprecation check needs to be done where the overload set is resolved,
wherever that is.

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


[Issue 8397] parameter types are not checked when assigning a function literal

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


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

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-07-19 10:27:47 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1059

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


[Issue 8401] New: rdmd doesn't compile on 2.060 HEAD

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

   Summary: rdmd doesn't compile on 2.060 HEAD
   Product: D
   Version: D2
  Platform: x86_64
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: druntime
AssignedTo: nob...@puremagic.com
ReportedBy: simend...@gmail.com


--- Comment #0 from simendsjo simend...@gmail.com 2012-07-19 11:46:39 PDT ---
I'm not really sure what happens here..
Tested on kubuntu64.

Fully updated:
dmd: bdb1f13fa9124a56dda0b36697b394e890758241
druntime: 84ed85b45c0ab5f76b2ff8de131dfcabb26d199b
phobos: 9e6f7e17f30a4d720c459d98a97b83327a871bb4
tools: 9e6f7e17f30a4d720c459d98a97b83327a871bb4

$ grep  bsr( druntime/src/core/bitop.d
int bsr(size_t v) pure;

$ dmd rdmd.d
rdmd.o: In function `_D3std5array17__T8popFrontTAyaZ8popFrontFNaNbNeKAyaZv':
rdmd.d:(.text._D3std5array17__T8popFrontTAyaZ8popFrontFNaNbNeKAyaZv+0xc3):
undefined reference to `_D4core5bitop3bsrFNaNbmZi'
rdmd.o: In function
`_D3std5array17__T8AppenderTAyaZ8Appender11newCapacityFmZm':
rdmd.d:(.text._D3std5array17__T8AppenderTAyaZ8Appender11newCapacityFmZm+0x1d):
undefined reference to `_D4core5bitop3bsrFNaNbmZi'
rdmd.o: In function `_D3std5array17__T8popFrontTAxaZ8popFrontFNaNbNeKAxaZv':
rdmd.d:(.text._D3std5array17__T8popFrontTAxaZ8popFrontFNaNbNeKAxaZv+0xc3):
undefined reference to `_D4core5bitop3bsrFNaNbmZi'
rdmd.o: In function `_D3std5array16__T8popFrontTAaZ8popFrontFNaNbNeKAaZv':
rdmd.d:(.text._D3std5array16__T8popFrontTAaZ8popFrontFNaNbNeKAaZv+0xc3):
undefined reference to `_D4core5bitop3bsrFNaNbmZi'
rdmd.o: In function
`_D3std5array17__T8AppenderTAxaZ8Appender11newCapacityFmZm':
rdmd.d:(.text._D3std5array17__T8AppenderTAxaZ8Appender11newCapacityFmZm+0x1d):
undefined reference to `_D4core5bitop3bsrFNaNbmZi'
rdmd.o:rdmd.d:(.text._D3std5array16__T8AppenderTAkZ8Appender11newCapacityFmZm+0x21):
more undefined references to `_D4core5bitop3bsrFNaNbmZi' follow
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(uni_fd9_5e3.o): In
function
`_D3std8internal3uni22__T13CodepointTrieVi8Z13CodepointTrie7opIndexMxFNewZb':
/home/simendsjo/code/dmd-trunk/phobos/std/internal/uni.d:597: undefined
reference to `_D4core5bitop2btFNaNbxPmmZi'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(utf_148b_41d.o): In
function `_D3std3utf10strideImplFNaNeamZk':
/home/simendsjo/code/dmd-trunk/phobos/std/utf.d:164: undefined reference to
`_D4core5bitop3bsrFNaNbmZi'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(array_2c7_6f0.o): In
function `_D3std5array18__T8AppenderTAAyaZ8Appender11newCapacityFmZm':
/home/simendsjo/code/dmd-trunk/phobos/std/array.d:2126: undefined reference to
`_D4core5bitop3bsrFNaNbmZi'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(file_845_5fb.o): In
function
`_D3std5array52__T8AppenderTAS3std4file15DirIteratorImpl9DirHandleZ8Appender11newCapacityFmZm':
/home/simendsjo/code/dmd-trunk/phobos/std/array.d:2126: undefined reference to
`_D4core5bitop3bsrFNaNbmZi'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(file_845_5fb.o): In
function
`_D3std5array34__T8AppenderTAS3std4file8DirEntryZ8Appender11newCapacityFmZm':
/home/simendsjo/code/dmd-trunk/phobos/std/array.d:2126: undefined reference to
`_D4core5bitop3bsrFNaNbmZi'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(regex_ef2_13e3.o): In
function
`_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet143__T11SortedRangeTAyS3std8internal7uni_tab15UnicodePropertyS813std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet12__lambda1279Z11SortedRange6__ctorMFAyS3std8internal7uni_tab15UnicodePropertyZS3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet143__T11SortedRangeTAyS3std8internal7uni_tab15UnicodePropertyS813std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet12__lambda1279Z11SortedRange':
/home/simendsjo/code/dmd-trunk/phobos/std/range.d:6497: undefined reference to
`_D4core5bitop3bsrFNaNbmZi'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(range_f2c_8f7.o):/home/simendsjo/code/dmd-trunk/phobos/std/range.d:6497:
more undefined references to `_D4core5bitop3bsrFNaNbmZi' follow
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(bitmanip_3a4_59c.o): In
function `_D3std8bitmanip14swapEndianImplFNaNbNekZk':
/home/simendsjo/code/dmd-trunk/phobos/std/bitmanip.d:1429: undefined reference
to `_D4core5bitop5bswapFNaNbkZk'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(bitmanip_3a5_59c.o): In
function `_D3std8bitmanip14swapEndianImplFNaNbNemZm':
/home/simendsjo/code/dmd-trunk/phobos/std/bitmanip.d:1434: undefined reference
to `_D4core5bitop5bswapFNaNbkZk'
/home/simendsjo/code/dmd-trunk/phobos/std/bitmanip.d:1435: undefined reference
to `_D4core5bitop5bswapFNaNbkZk'
/home/simendsjo/code/dmd-trunk/build/lib64/libphobos2.a(numeric_da0_120.o): In
function `_D3std7numeric3Fft6__ctorMFAfZC3std7numeric3Fft':

[Issue 8401] rdmd doesn't compile on 2.060 HEAD

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


Nils mailm...@nilsb.dyndns.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||mailm...@nilsb.dyndns.org
 Resolution||DUPLICATE


--- Comment #1 from Nils mailm...@nilsb.dyndns.org 2012-07-19 12:39:07 PDT ---
*** This issue has been marked as a duplicate of issue 8394 ***

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


[Issue 8394] Can't compile rdmd.d using master version under XP

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


Nils mailm...@nilsb.dyndns.org changed:

   What|Removed |Added

 CC||simend...@gmail.com


--- Comment #4 from Nils mailm...@nilsb.dyndns.org 2012-07-19 12:39:08 PDT ---
*** Issue 8401 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: ---