[Issue 13319] New: tzDatabaseNameToWindowsTZName should return null on failure rather than throw

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13319

  Issue ID: 13319
   Summary: tzDatabaseNameToWindowsTZName should return null on
failure rather than throw
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: Phobos
  Assignee: nob...@puremagic.com
  Reporter: jmdavisp...@gmx.com

Currently, tzDatabaseNameToWindowsTZName and windowsTZNameToTZDatabaseName
throw on failure. In most cases, this is fine, because the common usage is
likely to be something like

auto tz =
WindowsTimeZone.getTimeZone(tzDatabaseNameToWindowsTZName(America/Los_Angeles));

and having that throw on failure is what we want, particularly since it'll
probably be fed immediately into the constructor for SysTime. However, in the
case where you're trying to check conversions, the fact that it throws is
actually very annoying. So, I propose changing it so that they return null no
failure, and then getTimeZone would throw instead (because it was given null
for the timezone name). So, the normal use case would just get a different
error message on failure.

The only place that I can think of where this change might break code is in
checking for whether a particular time zone conversion exists, because right
now, it would check for whether an exception is thrown, and after this, it
would have to check for null. So, such code could conceivably break, but such
code is also likely very, very rare. So, I woludn't expect much code breakage,
and hopefully the few folks who would be affected would see the changelog and
change their code. But if they didn't, they'd probably still end up calling
getTimeZone with the result at some point and get an exception, since it would
be extremely rare for anyone to need those conversions for something else. So,
it's a risk, but I think that it's small enough that it's acceptable.

--


[Issue 13299] [dmd-2.066-rc2] - Property not found with typesafe variadic opDispatch

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13299

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

   What|Removed |Added

   Keywords||pull, rejects-valid

--- Comment #2 from Kenji Hara k.hara...@gmail.com ---
https://github.com/D-Programming-Language/dmd/pull/3874

--


[Issue 13320] New: Redundant error messages for missing operation on struct instance

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13320

  Issue ID: 13320
   Summary: Redundant error messages for missing operation on
struct instance
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Keywords: diagnostic
  Severity: minor
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: bearophile_h...@eml.cc

I think one error message suffices here, they seem to say something similar
here:


struct Foo {}
void main() {
Foo f;
++f;
}


2.067alpha gives:

test.d(4,5): Error: 'f += 1' is not a scalar, it is a Foo
test.d(4,5): Error: incompatible types for ((f) += (1)): 'Foo' and 'int'


I think the second error message suffices.

--


[Issue 13321] New: Wrong goto skips declaration error

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13321

  Issue ID: 13321
   Summary: Wrong goto skips declaration error
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Keywords: diagnostic, rejects-valid
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: bearophile_h...@eml.cc

Reduced from a post by nrgyzer:


struct Foo {
this(int) {}
}
void main(string[] args) {
Foo x;
if (args.length  1)
goto EXIT;
x = Foo(1);
EXIT:
}


2.067alpha gives an error message that I think is spurious (rejects-valid):

test.d(7,9): Error: goto skips declaration of variable test.main.__ctmp1 at
test.d(8,12)

--


[Issue 13321] Wrong goto skips declaration error

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13321

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

   What|Removed |Added

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

--


[Issue 9738] inline asm offset expression looks like array indexing

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9738

--- Comment #4 from Sobirari Muhomori dfj1es...@sneakemail.com ---
Back in the days Borland developed IDEAL mode for TASM, which provided handier,
stricter, less ambiguous, more idiomatic syntax. Maybe someone can find its
description?

--


[Issue 13322] New: Remove the ability to mark a module level declaration static

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13322

  Issue ID: 13322
   Summary: Remove the ability to mark a module level declaration
static
   Product: D
   Version: D2
  Hardware: x86_64
OS: All
Status: NEW
  Severity: trivial
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: maidenp...@hotmail.com

module toto;

static int x = 4;

static void myFunc(){}

static template myTemplate(){}

static struct Hello{}

static class GoodBye{}

static interface Wow{}

This compiles. It seems like static works with every module declaration, yet
changes nothing. I think it is misleading and should not compile. In the
eventuality that static class ever means something at module level, it would
be even more confusing if every version of the compiler allows it yet only a
few do something with it.

Philz

--


[Issue 7246] Provide a simpler example for std.algorithm.remove

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7246

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

   What|Removed |Added

 CC||c...@dawg.eu
  Component|Optlink |Phobos

--


[Issue 13323] New: UDA applied to import statement causes compilation to fail without error

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13323

  Issue ID: 13323
   Summary: UDA applied to import statement causes compilation to
fail without error
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: turkey...@gmail.com

struct UDA {}

struct S
{
  @UDA:
  import std.string;
}

Compilation takes a long time, and eventually fails. No error is output.

--


[Issue 13324] New: dynamically load libcurl at runtime

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13324

  Issue ID: 13324
   Summary: dynamically load libcurl at runtime
   Product: D
   Version: D2
  Hardware: All
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: Phobos
  Assignee: nob...@puremagic.com
  Reporter: c...@dawg.eu

The fact that std.net.curl requires explicit linking against libcurl causes too
many troubles. It would be nicer to dynamically load the library on usage.

--


[Issue 13315] std.getopt: implicit help option doesn't work without config.passThrough

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13315

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 13315] std.getopt: implicit help option doesn't work without config.passThrough

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13315

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/d51af72d5a0a999b62d26f9973e5a2cb8ea5041f
fix Issue 13315 - std.getopt: implicit help option doesn't work without
config.passThrough

https://github.com/D-Programming-Language/phobos/commit/a2b4b0eadede01836cab4f3418131d6095ae9c4c
Merge pull request #2433 from NilsBossung/13315

fix issues 13315, 13316, 13317 - std.getopt woes

--


[Issue 13317] std.getopt: endOfOptions broken when it doesn't look like an option

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13317

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 13316] std.getopt: implicit help option breaks the next argument

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13316

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 13317] std.getopt: endOfOptions broken when it doesn't look like an option

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13317

--- Comment #1 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/c40fd397c6d3ec2bc1533e0016eb9b04b5ef6bdb
fix Issue 13317 - std.getopt: endOfOptions broken when it doesn't look like an
option

https://github.com/D-Programming-Language/phobos/commit/a2b4b0eadede01836cab4f3418131d6095ae9c4c
Merge pull request #2433 from NilsBossung/13315

fix issues 13315, 13316, 13317 - std.getopt woes

--


[Issue 13316] std.getopt: implicit help option breaks the next argument

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13316

--- Comment #1 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/9c10c242205fc94071de2676c8e2409843e3c81a
fix Issue 13316 - std.getopt: implicit help option breaks the next argument

https://github.com/D-Programming-Language/phobos/commit/a2b4b0eadede01836cab4f3418131d6095ae9c4c
Merge pull request #2433 from NilsBossung/13315

fix issues 13315, 13316, 13317 - std.getopt woes

--


[Issue 8462] recursive alias error with function pointer

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8462

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||hst...@quickfur.ath.cx
 Resolution|--- |WORKSFORME

--- Comment #1 from hst...@quickfur.ath.cx ---
Works on latest git HEAD. Tested on Linux/64bit. Please reopen if it still
fails on other platforms.

--


[Issue 8217] static nested class can reference outer scope by template instantiation

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8217

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

   What|Removed |Added

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

--- Comment #1 from hst...@quickfur.ath.cx ---
With dmd git HEAD (2.067a):
-
test.d(10): Error: this for foo needs to be type D not type test.D.C
-

Should this bug be closed now?

--


[Issue 7958] Uniform Function Call fails if class defined inside a function

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7958

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

   What|Removed |Added

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

--- Comment #2 from hst...@quickfur.ath.cx ---
The original test case now works in DMD git head. However, the one given in
comment #1 still doesn't work.

--


[Issue 7779] D1-style opWhatever method is chosen in preference to opBinary under D2

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7779

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

   What|Removed |Added

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

--


[Issue 10233] [Tracker] Grammar issues

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

briancsch...@gmail.com changed:

   What|Removed |Added

 Depends on||13325

--


[Issue 13325] New: __vector not documented in language specification

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13325

  Issue ID: 13325
   Summary: __vector not documented in language specification
   Product: D
   Version: D2
  Hardware: All
   URL: http://dlang.org/declaration.html#BasicType
OS: All
Status: NEW
  Keywords: spec
  Severity: enhancement
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: briancsch...@gmail.com
Blocks: 10233

core.simd contains the following line:

alias __vector(T) Vector;

Yet __vector is not documented under the BasicType rule:

BasicType:
BasicTypeX
. IdentifierList
IdentifierList
Typeof
Typeof . IdentifierList
TypeCtor ( Type )

--


[Issue 7016] local import does not create -deps dependency

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7016

--- Comment #10 from Vladimir Panteleev thecybersha...@gmail.com ---
Added $25 bounty:
https://www.bountysource.com/issues/3785375-local-import-does-not-create-deps-dependency

--


[Issue 11070] Allow declaration statement in a switch expression

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11070

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

   What|Removed |Added

 CC||thecybersha...@gmail.com

--- Comment #8 from Vladimir Panteleev thecybersha...@gmail.com ---
Added $25 bounty:
https://www.bountysource.com/issues/3785344-allow-declaration-statement-in-a-switch-expression

--


[Issue 11070] Allow declaration statement in a switch expression

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11070

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

   What|Removed |Added

   Keywords||bounty

--


[Issue 7016] local import does not create -deps dependency

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7016

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

   What|Removed |Added

   Keywords||bounty

--


[Issue 5710] cannot use delegates as parameters to non-global template

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5710

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

   What|Removed |Added

 CC||thecybersha...@gmail.com

--- Comment #41 from Vladimir Panteleev thecybersha...@gmail.com ---
Added $50 to existing $100 bounty:
https://www.bountysource.com/issues/1375082-cannot-use-delegates-as-parameters-to-non-global-template

--


[Issue 12913] Mistake concerning DLists

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12913

--- Comment #4 from sigod sigod.m...@gmail.com ---
https://github.com/D-Programming-Language/phobos/pull/2435

--


[Issue 8028] Templates sometimes-can/sometimes-can't access private symbols in same module

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8028

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||hst...@quickfur.ath.cx
 Resolution|--- |WORKSFORME

--- Comment #1 from hst...@quickfur.ath.cx ---
Seems to have been fixed in latest git HEAD. Both A and B are now accepted.

--


[Issue 8204] Alias causes error: auto can only be used for template function parameters

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8204

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

   What|Removed |Added

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

--- Comment #1 from hst...@quickfur.ath.cx ---
Still happens on git HEAD.

--


[Issue 11946] need 'this' to access member when passing field to template parameter

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11946

Vlad Levenfeld vlevenf...@gmail.com changed:

   What|Removed |Added

 CC||vlevenf...@gmail.com

--


[Issue 13257] [REG2.067a] Deprecation message when using std.getopt with string[] parameter

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13257

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

   What|Removed |Added

   Keywords||pull

--


[Issue 7706] Comparing struct rvalues

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7706

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

   What|Removed |Added

 CC||hst...@quickfur.ath.cx
   Severity|normal  |enhancement

--


[Issue 7616] aggregates don't inherit pure nothrow from outer scope

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7616

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

   What|Removed |Added

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

--- Comment #2 from hst...@quickfur.ath.cx ---
Gah, this is a mess. On git HEAD, the original produces this output:
--
@safe void()
pure nothrow @safe void()
--

which seems to indicate that pure nothrow: has no effect.

Commenting out the pure nothrow: line in Foo2 produces:
--
@safe void()
@safe void()
--

So basically, pure nothrow: doesn't work at all.

--


[Issue 13257] [REG2.067a] Deprecation message when using std.getopt with string[] parameter

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13257

--- Comment #14 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/676290c36db208d13b93d1a45a87fefee26c1eb9
Merge pull request #2415 from quickfur/issue13257

Workaround deprecation of splitter.{back,popBack} in std.algorithm.map.

--


[Issue 13326] New: Specification of CaseStatement doesn't fit empty case body

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13326

  Issue ID: 13326
   Summary: Specification of CaseStatement doesn't fit empty case
body
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Keywords: spec
  Severity: normal
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: s.tr...@gmail.com
Blocks: 10233

Lets parse next D code:

 switch(n) {
 case 1:
 case 2:
   return true;
 }

This is a valid D language construction. But documentation says that statement
case 1: must be followed by any statement except other case or default.
As documentation says (http://dlang.org/statement#CaseStatement)
case ArgumentList : is followed by ScopeStatementList
(http://dlang.org/statement#ScopeStatementList) which is a list of any
statements except CaseStatement or CaseRangeStatement or DefaultStatement. This
rule conflicts with actual D language compiler.

--


[Issue 10233] [Tracker] Grammar issues

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

s.tr...@gmail.com changed:

   What|Removed |Added

 Depends on||13326

--


[Issue 10233] [Tracker] Grammar issues

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

s.tr...@gmail.com changed:

   What|Removed |Added

 Depends on||13327

--


[Issue 13327] New: Specification of anonymous enum with one member is missed

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13327

  Issue ID: 13327
   Summary: Specification of anonymous enum with one member is
missed
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Keywords: spec
  Severity: normal
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: s.tr...@gmail.com
Blocks: 10233

Official documentation on page http://dlang.org/enum.html in Manifest
Constants section has an example of anonymous enum with a single member.

 enum i = 4;  // i is 4 of type int
 enum long l = 3; // l is 3 of type long

But rules on the same page don't have description of this case. Specification
says that members are always enclosed with braces '{' and '}'. I think
documentation must be updated.

--


[Issue 13327] Specification of anonymous enum with one member is missed

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13327

briancsch...@gmail.com changed:

   What|Removed |Added

 CC||briancsch...@gmail.com

--- Comment #1 from briancsch...@gmail.com ---
This actually is documented, but it somewhere completely different:
http://dlang.org/declaration.html#AutoDeclaration

--


[Issue 13328] New: Missing link to contracts description from function specification page

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13328

  Issue ID: 13328
   Summary: Missing link to contracts description from function
specification page
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Keywords: spec
  Severity: normal
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: s.tr...@gmail.com
Blocks: 10233

Function declaration page http://dlang.org/function.html has specification of
in and out contracts. But while there is detailed definition of syntax
rules this page doesn't have description what does this in and out keywords
mean. There is no example with these keywords. Even word contract is missing.
Documentation must be updated to have link to Contracts page from function
syntax definition page.

--


[Issue 10233] [Tracker] Grammar issues

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

s.tr...@gmail.com changed:

   What|Removed |Added

 Depends on||13328

--


[Issue 10233] [Tracker] Grammar issues

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

briancsch...@gmail.com changed:

   What|Removed |Added

 Depends on|13328   |

--


[Issue 13328] Missing link to contracts description from function specification page

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13328

briancsch...@gmail.com changed:

   What|Removed |Added

 CC||briancsch...@gmail.com
 Blocks|10233   |

--- Comment #1 from briancsch...@gmail.com ---
Removing 10233 blocking because this isn't a grammar issue.

--


[Issue 13329] New: AutoDeclarationX grammar lists '=' token and template parameters in the wrong order

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13329

  Issue ID: 13329
   Summary: AutoDeclarationX grammar lists '=' token and template
parameters in the wrong order
   Product: D
   Version: D2
  Hardware: All
   URL: http://dlang.org/declaration.html#AutoDeclaration
OS: All
Status: NEW
  Keywords: spec
  Severity: normal
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: briancsch...@gmail.com
Blocks: 10233

AutoDeclarationX:
Identifier = TemplateParametersopt Initializer
AutoDeclarationX , Identifier TemplateParametersopt = Initializer

This should be 

AutoDeclarationX:
Identifier TemplateParametersopt = Initializer
AutoDeclarationX , Identifier TemplateParametersopt = Initializer

--


[Issue 10233] [Tracker] Grammar issues

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

briancsch...@gmail.com changed:

   What|Removed |Added

 Depends on||13329

--


[Issue 13257] [REG2.067a] Deprecation message when using std.getopt with string[] parameter

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13257

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 8578] std.demangle.demangle does not parse symbols that are type names

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8578

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

   What|Removed |Added

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

--


[Issue 8272] [Ddoc] Recursive macro expansion is failed.

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8272

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||hst...@quickfur.ath.cx
 Resolution|--- |WONTFIX

--


[Issue 6471] std.metastrings.Format has recursive expansion problems

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6471

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #4 from hst...@quickfur.ath.cx ---
std.metastrings has been deprecated and removed, so this bug will never be
fixed. Use std.format instead (it is now supported in CTFE).

--


[Issue 8487] Semantic analysis of templates is insanely slow

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8487

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

   What|Removed |Added

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

--- Comment #9 from hst...@quickfur.ath.cx ---
std.metastrings has since been deprecated and removed, and replaced with
std.format. Does this issue still occur?

--


[Issue 8487] Semantic analysis of templates is insanely slow

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8487

--- Comment #10 from Jonathan M Davis jmdavisp...@gmx.com ---
std.metastrings is no longer with us, but I'd be very surprised if the problem
with template performance were fixed. Clearly, a new example is needed though
,since std.metastrings has finally been removed.

--


[Issue 12754] MAC link error for template to static value

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12754

--- Comment #11 from deadalnix deadal...@gmail.com ---
I did some investigation and I have better:

The problem is due to an update in OSX's linker. That indeed not a regression(
not a DMD regression anyway). That is why is is now failing with previous
version of DMD as well.

LLVM had a recent update to fix this, but I can't find the commit that did it.

--


[Issue 13321] Wrong goto skips declaration error

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13321

bearophile_h...@eml.cc changed:

   What|Removed |Added

   Severity|normal  |regression

--


[Issue 13330] New: Calling std.c.stdlib.exit() from child threads causes segfault

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13330

  Issue ID: 13330
   Summary: Calling std.c.stdlib.exit() from child threads causes
segfault
   Product: D
   Version: D2
  Hardware: x86
OS: Mac OS X
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: and...@erdani.com

Repro program:

import std.stdio, std.concurrency;

static void thread_run() {
  int[int] testMap;
  // should throw an out of range exception
  writeln(child: running ...);
  try {
int testValue = testMap[10];
  } catch(Throwable e) {
writefln(Exception in child thread: %s, e);
std.c.stdlib.exit(0);
  }
  writeln(child: testValue set, sent back to parent);
  ownerTid.send(1);
}

int main() {
  writeln(partent: starting child thread ...);
  Tid child = spawn(thread_run);
  int stop = 0;
  while(stop = 0) {
stop = receiveOnly!int();
writefln(parent: received from child: %s, exiting..., stop);
  }
  writeln(exiting);
  return 0;
} 


OUTPUT: 
[ghwang@dev1817 ~/test] ./testException
partent: starting child thread ...
child: running ...
Exception in child thread: core.exception.RangeError@testException(8): Range
violation

./testException(_d_array_bounds+0x26) [0x48f3a6]
./testException() [0x46d17e]
./testException(void testException.thread_run()+0x6a) [0x46214e]
./testException(_D3std11concurrency16__T6_spawnTPFZvZ6_spawnFbPFZvZS3std11concurrency3Tid4execMFZv+0x3d)
[0x465761]
./testException(void core.thread.Thread.run()+0x2a) [0x49a306]
./testException(thread_entryPoint+0x165) [0x49a08d]
/usr/local/fbcode/gcc-4.8.1-glibc-2.17-fb/lib/libpthread.so.0(+0x7fa8)
[0x7fa5256adfa8]
/usr/local/fbcode/gcc-4.8.1-glibc-2.17-fb/lib/libc.so.6(clone+0x6d)
[0x7fa524ec35ad]
Segmentation fault

--


[Issue 13321] Wrong goto skips declaration error

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13321

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

   What|Removed |Added

 CC||thecybersha...@gmail.com

--- Comment #1 from Vladimir Panteleev thecybersha...@gmail.com ---
Introduced in https://github.com/D-Programming-Language/dmd/pull/2839

--


[Issue 4725] std.algorithm.sum()

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4725

Orvid King blah38...@gmail.com changed:

   What|Removed |Added

 CC||blah38...@gmail.com

--- Comment #34 from Orvid King blah38...@gmail.com ---
I'll assume that the fact that the only version of sum that this supported is
an array specialized version is one of the known issues?

--


[Issue 4725] std.algorithm.sum()

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4725

--- Comment #35 from Andrei Alexandrescu and...@erdani.com ---
sum should work with all ranges, and get specialized only for specific kinds of
ranges. Is that not the case?

--


[Issue 4725] std.algorithm.sum()

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4725

--- Comment #36 from Orvid King blah38...@gmail.com ---
Ack, woops, sorry, was thinking of the wrong function, it was max that I had an
issue with, as it didn't work when I chained it after a map!().

--


[Issue 13313] std.datetime fails unittests on Windows

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13313

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/f10ed1a90e5802bc22fc48a9d30f86fbfe1ff2e4
Fix issue# 13313: Line Islands Standard Time was missing.

It's included in this update http://support.microsoft.com/kb/2981580 but
has yet to make it into
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/zone_tzid.html

https://github.com/D-Programming-Language/phobos/commit/cc49050465822312f3ff3f069ce3a25c25c8f025
Merge pull request #2434 from jmdavis/13313

Issue# 13313: Add Line Islands Standard Time

--


[Issue 13319] tzDatabaseNameToWindowsTZName should return null on failure rather than throw

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13319

--- Comment #1 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/3a5a11038d83a16b7294cc1dba7e34c4a0df
Issue# 13319. Make tzDatabaseNameToWindowsTZName return null on failure.

--


[Issue 13319] tzDatabaseNameToWindowsTZName should return null on failure rather than throw

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13319

Jonathan M Davis jmdavisp...@gmx.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 13309] DMD accepts yet another invalid alias declaration

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13309

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

   What|Removed |Added

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

--- Comment #3 from hst...@quickfur.ath.cx ---
This looks like the old alias syntax `alias originalSymbol newSymbol;`. For
functions, it appears to be following C/C++'s totally counterintuitive pattern
of function pointer declaration `returnType (*ptrName)(... /*arguments*/)`. In
this case, it appears to be aliasing a function that takes (uint, void*, uint,
uint*) arguments and returns HRESULT to the name fnNtQuerySystemInformation.

--