[Issue 11689] New: deprecated local function does not work

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11689

   Summary: deprecated local function does not work
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: rejects-valid
  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-12-05 00:06:30 PST ---
This code is allowed by grammar, but compiler rejects it.

void main()
{
deprecated void foo() {}
}

'deprecated' should be parsed as a part of 'StorageClass'.


DeclarationStatement:
Declaration   --

Declaration:
AliasDeclaration
AliasThisDeclaration
Decl   --

Decl:
StorageClasses Decl   --
BasicType Declarators ;
BasicType Declarator FunctionBody
AutoDeclaration

StorageClasses:
StorageClass   --
StorageClass StorageClasses

StorageClass:
abstract
auto
TypeCtor
deprecated   --
enum
extern
final
nothrow
override
pure
__gshared
Property
scope
static
synchronized


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


[Issue 11689] deprecated local function does not work

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11689


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

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-12-05 00:11:54 PST ---
https://github.com/D-Programming-Language/dmd/pull/2926

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


[Issue 11512] Regression (2.065 git-head): Can't build Phobos docs with win32 makefile

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11512



--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-12-05 00:29:35 PST ---
I'm not sure this is a regression in git-head.

https://github.com/D-Programming-Language/phobos/commit/40854fd7e20af1749a2d7a048c263caf2209d538

std.ddoc file has been removed from 3 years ago, but release package (eg.
2.064.2.zip) contains std.ddoc in src/phobos directory.

If you want to create Phobos document in your local, you need to specify the
path to the dlang.org repo.

C:\dmd2\src\phobos make -f win32.mak html DOCSRC=../dlang.org

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


[Issue 8877] std.encoding.transcode is extremely slow

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8877



--- Comment #1 from github-bugzi...@puremagic.com 2013-12-05 00:30:11 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/46dc7b557eff1f268859ae56680797d5b45c21bf
Fix Issue 8877 - std.encoding.transcode is extremely slow

https://github.com/D-Programming-Language/phobos/commit/f011a9535f625fb5f1919ee40b38f69e8eaf1d74
Merge pull request #891 from Kozzi11/master

Fix Issue 8877 - std.encoding.transcode is extremely slow

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


[Issue 11434] std.file.copy doesn't preserve file attributes (eg: executable mode etc)

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11434


Timothee Cour timothee.co...@gmail.com changed:

   What|Removed |Added

 CC||timothee.co...@gmail.com


--- Comment #1 from Timothee Cour timothee.co...@gmail.com 2013-12-05 
00:53:23 PST ---
https://github.com/D-Programming-Language/phobos/pull/1747

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


[Issue 11627] [CTFE] cannot cast dchar to char at compile time on AA assignment

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11627


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 11674] core.stdc.fenv.fenv_t declaration not architecture aware

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11674


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

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Martin Nowak c...@dawg.eu 2013-12-05 03:26:54 PST ---
https://github.com/D-Programming-Language/druntime/pull/683

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


[Issue 11512] Regression (2.065 git-head): Can't build Phobos docs with win32 makefile

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11512



--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-12-05 
03:55:29 PST ---
(In reply to comment #1)
 I'm not sure this is a regression in git-head.

Well it definitely stopped working even though I didn't change any of my paths.

 std.ddoc file has been removed from 3 years ago, but release package (eg.
 2.064.2.zip) contains std.ddoc in src/phobos directory.
 
 If you want to create Phobos document in your local, you need to specify the
 path to the dlang.org repo.
 
 C:\dmd2\src\phobos make -f win32.mak html DOCSRC=../dlang.org

That works, thanks. But I think this should be documented somewhere, maybe in
the readme file.

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


[Issue 11690] New: a few spellchecker improvements

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11690

   Summary: a few spellchecker improvements
   Product: D
   Version: unspecified
  Platform: All
OS/Version: All
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-12-05 05:25:28 PST ---
The spell checker should limit the levenshtein distance based on the length of
the searched identifier. More typos for longer names and fewer or no typos for
shorter names. For example it doesn't make sense to propose 'b' when someone
typed 'a'.

Currently the proposals are only based on the minimal levenshtein distance.
It would make sense to weigh certain edits higher than others, e.g.
capitalization errors or interchanged letters are more likely than other typos.

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


[Issue 11689] deprecated local function does not work

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11689



--- Comment #2 from github-bugzi...@puremagic.com 2013-12-05 06:09:20 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b8d3eb189533a3b914143c7ef9fdb954cf775686
fix Issue 11689 - deprecated local function does not work

https://github.com/D-Programming-Language/dmd/commit/c4d71efb3aeb69da6e0e3b0b8b37879f28a83e7f
Merge pull request #2926 from 9rnsr/fix11689

Issue 11689 - deprecated local function does not work

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


[Issue 11691] New: can't join pathSplitter with pathSeparator

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11691

   Summary: can't join pathSplitter with pathSeparator
   Product: D
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: c...@dawg.eu


--- Comment #0 from Martin Nowak c...@dawg.eu 2013-12-05 06:13:43 PST ---
cat  bug.d  CODE
import std.range, std.path;

void bug()
{
auto comps = pathSplitter(foo/bar);
auto path = join(comps, pathSeparator);
}
CODE

dmd -c bug



This fails because the element type of PathSplitter
is const(C[]) where it should be const(C)[].

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


[Issue 11691] can't join pathSplitter with pathSeparator

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11691


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

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Martin Nowak c...@dawg.eu 2013-12-05 06:23:31 PST ---
https://github.com/D-Programming-Language/phobos/pull/1749

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


[Issue 11499] is-expression misbehaving with 'alias this'

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11499


Tommi tommitiss...@hotmail.com changed:

   What|Removed |Added

   Severity|normal  |major


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


[Issue 11689] deprecated local function does not work

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11689


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 11691] can't join pathSplitter with dirSeparator

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11691


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

   What|Removed |Added

Summary|can't join pathSplitter |can't join pathSplitter
   |with pathSeparator  |with dirSeparator


--- Comment #2 from Martin Nowak c...@dawg.eu 2013-12-05 06:56:37 PST ---
Apparently I should have used dirSeparator but it doesn't affect the bug.

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


[Issue 8960] DMD tester: Unable to set thread priority

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8960


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

   What|Removed |Added

   Priority|P2  |P4
 CC||c...@dawg.eu


--- Comment #6 from Martin Nowak c...@dawg.eu 2013-12-05 07:29:26 PST ---
Also fails on OSX.

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


[Issue 8960] DMD tester: Unable to set thread priority

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8960



--- Comment #7 from Martin Nowak c...@dawg.eu 2013-12-05 07:30:46 PST ---
Also see
https://github.com/D-Programming-Language/druntime/pull/542
https://github.com/D-Programming-Language/druntime/pull/550

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


[Issue 11583] bigint bug

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11583


hst...@quickfur.ath.cx changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #4 from hst...@quickfur.ath.cx 2013-12-05 07:48:37 PST ---
Verified fixed in git HEAD.

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


[Issue 11691] can't join pathSplitter with dirSeparator

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11691



--- Comment #3 from github-bugzi...@puremagic.com 2013-12-05 08:45:41 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/c1251436ba67b39e26f61e54ab79f8ee769fe5e7
fix Issue 11691 - can't join pathSplitter with pathSeparator

- The inferred return type of front had an additional
  layer of const because it's a const method.

https://github.com/D-Programming-Language/phobos/commit/4d3a2c49c8c72a5873f8c64e5b49b6a9ab897382
Merge pull request #1749 from dawgfoto/fix11691

fix Issue 11691 - can't join pathSplitter with pathSeparator

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


[Issue 11666] Separate each platform's port to its own folder/file: aka if version{} else version {} getting out of control

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11666



--- Comment #5 from Iain Buclaw ibuc...@ubuntu.com 2013-12-05 10:08:43 PST ---
(In reply to comment #4)
 (In reply to comment #0)
  ** begin quote **
  Personally I feel that people porting to specific architectures should
  maintain their differences in separate files under a /ports directory
  structure - lets say core.stdc.stdio as a cod example. The version for
  bionic would be under /ports/bionic/core/stdc/stdio.d, and that is the
  module that gets compiled into the library when building for bionic.
  When installing, the build process generates a header file of the
  bionic version of core.stdc.stdio and puts the file in the correct
  /include/core/stdc/stdio.di location.
 
 That sounds almost like a feasible approach. Can you go into more detail
 though.
 Would we create a complete copy of druntime under the ports tree or just for
 the files'that differ.
 What about the combinatorical explosion of libcs x archs, i.e.
 /ports/bionic_arm, /ports/bionic_x86 and /ports/glibc_ppc? Porting the bits
 folders for glibc would be the straightforward solution IMO, don't know about
 other C libs.
 How does this integrate with our core.sys.posix and core.sys.linux layers?

I'll have to sit and brood on this a little longer, but lets start with the
following definition I made up just now and destroy it as seen fit.

1) For each platform, we'll assume the default standard library. Alternative
libc implementation would require their own /port directory implementing the
entire druntime core.stdc.* - or at least the bits that they implement.

I'm not sure how bionic would fit into the current set-up because of the whole
conflict between Android/linux.  Arguably the bionic libc would come under as
an alternative libc implementation, and so we must throw it under /port.


2) Each platform gets it's own core.sys.xxx package.  So eg: we'll have
core.sys.android, core.sys.plan9, etc...


3) The platform versioning shall remain in place, leaving only architectural
differences to be thrown under /port

Lets take a recent example: struct fenv_t:

Implementation:

core/stdc/fenv.d:
---
  version (linux)
  {
public import core.sys.linux.fenv_t;
  }

ports/x86/core/sys/linux/fenv_t.d
---
  module core.sys.linux.fenv_t;

  version (X86) {
struct fenv_t { ... }
  }
  else
static assert (false, Some build-related error);


ports/x86_64/core/sys/linux/fenv_t.d
---
  module core.sys.linux.fenv_t;

  version (X86_64) {
struct fenv_t { ... }
  }
  else
static assert (false, Some build-related error);


ports/generic/core/sys/linux/fenv_t.d
---
  module core.sys.linux.fenv_t;

  static assert (false, fenv_t uimplementated for this architecture);



During the build process of druntime, all relevant sources for the target get
copied from /ports/xxx - /imports/xxx.  If no arch-specific implementation
exists, then the generic one is copied which will throw the unimplemented
static assert.


Problems that need resolving:

1) How we handle multiple architectures.

Obviously, we could go with the following structure for installed druntime
installations:
  /usr/include/d/core # Default target if no -mXX.
  /usr/include/d/x86_64/core  # Use this directory instead if -m64 is passed.

This kind of structure is already implemented in gdc, and is natural to the way
things are done within gcc's framework, but this I think would require compiler
changes for dmd to support.

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


[Issue 11666] Separate each platform's port to its own folder/file: aka if version{} else version {} getting out of control

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11666



--- Comment #6 from Iain Buclaw ibuc...@ubuntu.com 2013-12-05 10:12:50 PST ---
(In reply to comment #5)
 3) The platform versioning shall remain in place, leaving only architectural
 differences to be thrown under /port
 

Slight amendment to that statement:

If there are no differences between architectures. It shall be left as a common
implementation for all targets supported by that platform.

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


[Issue 11691] can't join pathSplitter with dirSeparator

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11691


Martin Nowak c...@dawg.eu 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 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11684



--- Comment #2 from hst...@quickfur.ath.cx 2013-12-05 11:46:50 PST ---
P.S. Here is the code I tested:
--
import std.stdio;

void main() {
writeln(Hello);
}
--

No segfaults happened.

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


[Issue 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11684


hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx


--- Comment #1 from hst...@quickfur.ath.cx 2013-12-05 11:45:57 PST ---
Post self-contained test case, please. I can't reproduce your problem in my
environment (just updated to git HEAD, Debian/unstable 64-bit).

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


[Issue 11512] Regression (2.065 git-head): Can't build Phobos docs with win32 makefile

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11512


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

   What|Removed |Added

 CC||bra...@puremagic.com


--- Comment #3 from Brad Roberts bra...@puremagic.com 2013-12-05 11:56:50 PST 
---
Doesn't that strongly suggest that the default value for DOCSRC is wrong and
should be changed in the make files?

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


[Issue 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11684


Daniel Kozak kozz...@gmail.com changed:

   What|Removed |Added

 CC||kozz...@gmail.com


--- Comment #3 from Daniel Kozak kozz...@gmail.com 2013-12-05 12:14:19 PST ---
(In reply to comment #2)
 P.S. Here is the code I tested:
 --
 import std.stdio;
 
 void main() {
 writeln(Hello);
 }
 --
 
 No segfaults happened.

same here, ArchLinux 64 with out segfaults

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


[Issue 11674] core.stdc.fenv.fenv_t declaration not architecture aware

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11674



--- Comment #2 from github-bugzi...@puremagic.com 2013-12-05 12:52:48 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/fc9a485c96305d38171fcd30c820437b4ca19831
fix Issue 11674 - fenv_t declaration not architecture aware

- add declarations for X86 and X86_64
- also fix incorrect type for fexcept_t

https://github.com/D-Programming-Language/druntime/commit/1ebc320ed53c01b4c521087c287d69e902a8712a
Merge pull request #683 from dawgfoto/fix11674

fix Issue 11674 - fenv_t declaration not architecture aware

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


[Issue 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11684


Timothee Cour timothee.co...@gmail.com changed:

   What|Removed |Added

 CC||timothee.co...@gmail.com


--- Comment #4 from Timothee Cour timothee.co...@gmail.com 2013-12-05 
15:10:54 PST ---
(In reply to comment #3)
 (In reply to comment #2)
  P.S. Here is the code I tested:
  --
  import std.stdio;
  
  void main() {
  writeln(Hello);
  }
  --
  
  No segfaults happened.
 
 same here, ArchLinux 64 with out segfaults

At least another user reported the same problem (see email: dmd git head
completely broken on ubuntu (but not osx))

It fails for me on both Ubuntu 12.04.1 LTS (64bit) and Ubuntu 12.04.3 LTS
(64bit), and the other user reported same issue on Ubuntu 12.04.3 LTS, x86_64

to reproduce: just do a fresh git clone of dmd/druntime/phobos and build as
usual, then run this program:

import std.stdio;
void main() {
  writeln(Hello);
}


it segfaults.

then git checkout 2.064 on dmd/druntime/phobos, clean/rebuild, it doesn't
segfault. So it's something introduced since then.

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


[Issue 11692] New: can't set file attributes for std.zip.ArchiveMember

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11692

   Summary: can't set file attributes for std.zip.ArchiveMember
   Product: D
   Version: D2
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: regression
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: c...@dawg.eu


--- Comment #0 from Martin Nowak c...@dawg.eu 2013-12-05 15:30:15 PST ---
To set the external (OS specific) file attributes one also has to set it's
format which is stored in the upper byte of madeVersion.
With https://github.com/D-Programming-Language/phobos/pull/1697 madeVersion
became a read-only property so this is no longer possible.
This is needed to store zip files with executable flag or directories on Posix.

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


[Issue 11693] New: Add new per thread active tickduration facility

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11693

   Summary: Add new per thread active tickduration facility
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: maidenp...@hotmail.com


--- Comment #0 from Phil Lavoie maidenp...@hotmail.com 2013-12-05 17:30:41 
PST ---
It'd be awesome if one could obtain the numbers of ticks a thread has been
ACTIVE using the standard library. It would allow for better time measurements
and more specific performance information. Thank you!

Phil Lavoie

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


[Issue 11694] New: std.traits.SetFunctionAttributes does not conserve constness

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11694

   Summary: std.traits.SetFunctionAttributes does not conserve
constness
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: ellery-newco...@utulsa.edu


--- Comment #0 from Ellery Newcomer ellery-newco...@utulsa.edu 2013-12-05 
18:22:15 PST ---
the code:
import std.traits;

class Z {
string a() immutable {
return  1;
}
}

pragma(msg ,typeof(Z.a));
pragma(msg, SetFunctionAttributes!(typeof(Z.a),
functionLinkage!(typeof(Z.a)), functionAttributes!(typeof(Z.a;

void main() {}

prints out

string function() immutable
string function()

rather than the expected

string function() immutable
string function() immutable

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


[Issue 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11684



--- Comment #5 from hst...@quickfur.ath.cx 2013-12-05 19:20:55 PST ---
I'm afraid you'll have to git bisect to find out when this started happening.
I've been compiling medium-sized projects with git HEAD and everything runs
without any problems, so my environment isn't useful to track down this
problem.

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


[Issue 1832] reading/writing an archive causes data loss; std.zip horribly broken

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1832


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

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||c...@dawg.eu
 Resolution|FIXED   |
   Severity|critical|regression


--- Comment #7 from Martin Nowak c...@dawg.eu 2013-12-05 20:46:34 PST ---
I now get a segfault for the following code.

import std.zip;

void main()
{
auto a1 = new ZipArchive();
auto m1 = new ArchiveMember();
m1.expandedData = new ubyte[](10);
a1.addMember(m1);
a1.build();
auto a2 = new ZipArchive();
a2.addMember(m1);
a2.build(); // segfaults
}

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


[Issue 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11684


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

   What|Removed |Added

   Priority|P2  |P4
 CC||c...@dawg.eu


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


[Issue 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

2013-12-05 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11684


Maxim Fomin ma...@maxim-fomin.ru changed:

   What|Removed |Added

 CC||ma...@maxim-fomin.ru


--- Comment #6 from Maxim Fomin ma...@maxim-fomin.ru 2013-12-05 22:27:10 PST 
---
It is obvious that it is either a user problem or bug which is revealed in
specific circumstances.

Please attach:
1) Fully working binary
2) Object file only

This will help to detect root of the issue.

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