[Issue 12612] Case-sensitivity issue in Windows

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12612

Manu turkey...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Manu turkey...@gmail.com ---
Sorry, false alarm. My bad!

--


[Issue 12394] Regression: std.regex unittests take agonizingly long to run - like hours on OSX

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12394

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

   What|Removed |Added

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

--


[Issue 12394] Regression: std.regex unittests take agonizingly long to run - like hours on OSX

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12394

--- Comment #3 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/a6cb0315a5e0188a60796453fc2bcfdecf8a2c75
fix Issue 12394 - Regression: std.regex unittests take agonizingly long to run
- like hours on OSX

https://github.com/D-Programming-Language/phobos/commit/6dbc50b47bbdd04e0c574df51221890b39be9049
Merge pull request #2098 from WalterBright/fix12394

fix Issue 12394 - Regression: std.regex unittests take agonizingly long ...

--


[Issue 12535] The language introduction page is not linked from index

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12535

j...@red.email.ne.jp changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from j...@red.email.ne.jp ---
https://github.com/D-Programming-Language/dlang.org/pull/544

--


[Issue 11171] Text relocations in Phobos shared library

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11171

--- Comment #10 from Martin Nowak c...@dawg.eu ---
This is fixed for x86_64, but there are still text relocations on x86_32.
The bug is also related to making ModuleInfo const, see bug 11543.

--


[Issue 12535] The language introduction page is not linked from index

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12535

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

https://github.com/D-Programming-Language/dlang.org/commit/47999c96d9a084f5e484d00ac64031d64bcc7bea
Merge pull request #544 from qchikara/ReviveIntroPage

Issue 12535: Fix link to the Introduction page

--


[Issue 12535] The language introduction page is not linked from index

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12535

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||c...@dawg.eu
 Resolution|--- |FIXED

--


[Issue 12536] Improve the documentation about preprocessing the files has Ddoc file header

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12536
Issue 12536 depends on issue 12535, which changed state.

Issue 12535 Summary: The language introduction page is not linked from index
https://issues.dlang.org/show_bug.cgi?id=12535

   What|Removed |Added

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

--


[Issue 12608] Dead assignment in UUIDParsingException

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12608

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

   What|Removed |Added

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

--


[Issue 12613] New: Diagnostic for calling convention mismatch when implementing/overriding methods should improve

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12613

  Issue ID: 12613
   Summary: Diagnostic for calling convention mismatch when
implementing/overriding methods should improve
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Keywords: diagnostic
  Severity: enhancement
  Priority: P1
 Component: DMD
  Assignee: andrej.mitrov...@gmail.com
  Reporter: andrej.mitrov...@gmail.com

-
import core.sys.windows.windows;
import std.c.windows.com;

interface IFoo
{
void foo();
}

abstract class Foo : IFoo
{
void foo_impl() { }
}

class C : Foo, IUnknown
{
void foo() { }

override void foo_impl() { }

HRESULT QueryInterface(const(IID)*, void**) { return typeof(return).init; }
uint AddRef() { return typeof(return).init; }
uint Release() { return typeof(return).init; }
}

void main()
{
}
-

Note that COM classes by default have the extern(System) calling convention,
hence why the above neither implements 'foo' nor overrides 'foo_impl'. The
diagnostics are:

-
test.d(14): Error: class test.C interface function 'void foo()' is not
implemented
test.d(18): Error: function test.C.foo_impl does not override any function, did
you mean to override 'test.Foo.foo_impl'?
-

The compiler should emit the calling convention of the two methods if they
don't match.

--


[Issue 12613] Diagnostic for calling convention mismatch when implementing/overriding methods should improve

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12613

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
Ok so this is a bit weird, in 'InterfaceDeclaration::semantic' COM interfaces
are handled like so:

if (com)
sc-linkage = LINKwindows;
else if (cpp)
sc-linkage = LINKcpp;

But in 'ClassDeclaration::semantic' the code path is different:

if (isCOMclass())
{
if (global.params.isWindows)
sc-linkage = LINKwindows;
else
/* This enables us to use COM objects under Linux and
 * work with things like XPCOM
 */
sc-linkage = LINKc;
}

Is this mismatch an oversight or deliberate? It's also the reason why there are
no proper diagnostics. There is a check in 'BaseClass::fillVtbl':

if (fd-linkage != ifd-linkage)
fd-error(linkage doesn't match interface function);

But the two will match in COM classes because the scope's linkage is modified,
not the actual functions themselves.

So what's the best way forward?

--


[Issue 12538] ZeroBUGS links are broken

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12538

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

   What|Removed |Added

   Keywords||pull
URL||https://github.com/D-Progra
   ||mming-Language/dlang.org/pu
   ||ll/546
 CC||andrej.mitrov...@gmail.com
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 12614] New: D Interface Files: package.di does not work

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12614

  Issue ID: 12614
   Summary: D Interface Files: package.di does not work
   Product: D
   Version: D2
  Hardware: x86_64
OS: Windows
Status: NEW
  Severity: minor
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: an...@s-e-a-p.de

file calc.d
module lib.calc;

class A
{
public int a;
}

file package.d
module lib;
public import lib.calc;

file main.d
import lib;

void main() 
{
  A a = new A();
}

Compile lib/header files and put them under dir lib
DMD calc package -H -lib

Compiling main file failed unless package.di is renamed to package.d
DMD main -IJ:\Test\lib J:\Test\lib\calc.lib

--


[Issue 12456] Regression: Direct downloads are no longer available from the changelog

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12456

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

   What|Removed |Added

   Keywords||pull
URL||https://github.com/D-Progra
   ||mming-Language/dlang.org/pu
   ||ll/547
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 12614] D Interface Files: package.di does not work

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12614

Andre an...@s-e-a-p.de changed:

   What|Removed |Added

 CC||an...@s-e-a-p.de

--


[Issue 12383] dlang.org operator overloading text with DDoc macro.

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12383

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

   What|Removed |Added

   Keywords||pull
URL||https://github.com/D-Progra
   ||mming-Language/dlang.org/pu
   ||ll/548
 CC||andrej.mitrov...@gmail.com
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 12293] std.algorithm.forward documentation

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12293

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

   What|Removed |Added

   Keywords||pull
URL||https://github.com/D-Progra
   ||mming-Language/phobos/pull/
   ||2099
 CC||andrej.mitrov...@gmail.com
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 12006] dlang.org/index.html leads to It works! page

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12006

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
Looks like this was fixed.

--


[Issue 12005] DDoc example refers to a dead project, yet a more recent one exists that is not mentioned.

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12005

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

   What|Removed |Added

   Keywords||pull
URL||https://github.com/D-Progra
   ||mming-Language/dlang.org/pu
   ||ll/549
 CC||andrej.mitrov...@gmail.com
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 3543] [tdpl] ternary operator can't find common type for classes/interfaces

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3543

Steven Schveighoffer schvei...@yahoo.com changed:

   What|Removed |Added

 CC||schvei...@yahoo.com

--- Comment #14 from Steven Schveighoffer schvei...@yahoo.com ---
(In reply to Andrei Alexandrescu from comment #11)

 A rule that would avoid that issue would be to count all common ancestors
 and find the one that is closest to both, i.e. shortest sum of steps from
 both interfaces. I thought of it but eliminated it because it can create
 rather subtle distinctions.
 
 I agree the problem is not as clear cut as we'd like.

It's pretty clear cut to me:

1. If you have a single common root, that is it. Any roots that are
possibilities only because they are ancestors of another root do not count.
2. If you have multiple common roots, it's ambiguous, a cast is required.

Note, this has to be considered: Currently in D, although it is actually
impossible to have a non-D object implement a D interface, interfaces are not
derived from Object. So technically, Object would always be a root separate
from any interface, which would make virtually any expression that involves
interfaces ambiguous. I think in at LEAST this context (though I would argue
for complete acceptance of interfaces always deriving from Object), Object
should be considered a root of all interfaces, thereby allowing interfaces to
validly be the result.

Note, I would make also an exception for literal array expressions to take the
usage into consideration. Currently, this does not work, but I think it should:

interface A {}
class B : A {}
class C : B {}
class D : B {}

void main()
{
   wstring ws = hello; // ok, compiler knows the literal should be typed as
 // wstring.
   A[] a = [new C, new D]; // error, [new C, new D] is typed as B[]
}

--


[Issue 9054] std.net.curl byLineAsync and byChunkAsync broken.

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9054

--- 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/039a237cbadf681d1d66436bde67af6a389d8920
fixes Issue 9054 - std.net.curl byLineAsync and byChunkAsync broken.

https://github.com/D-Programming-Language/phobos/commit/7c5bf90dc350654d749a5053a4069dff9dab9f06
Merge pull request #2086 from tcsc/master

fixes Issue 9054 - std.net.curl byLineAsync and byChunkAsync broken.

--


[Issue 12005] DDoc example refers to a dead project, yet a more recent one exists that is not mentioned.

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12005

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

   What|Removed |Added

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

--


[Issue 12005] DDoc example refers to a dead project, yet a more recent one exists that is not mentioned.

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12005

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

https://github.com/D-Programming-Language/dlang.org/commit/7d44c76018b5123db90342c970443ca8140d24c7
Fix Issue 12005 - Add a link to the DWiki for open-source ddoc-based
documentation generators.

https://github.com/D-Programming-Language/dlang.org/commit/f688bbb4f24808117844c870a5e6ba34eadfb71c
Merge pull request #549 from AndrejMitrovic/Fix12005

Issue 12005 - DDoc example refers to a dead project

--


[Issue 12538] ZeroBUGS links are broken

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12538

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||c...@dawg.eu
 Resolution|--- |FIXED

--- Comment #1 from Martin Nowak c...@dawg.eu ---
https://github.com/AndrejMitrovic/dlang.org/commit/abb012befebdb0f36c31d673e6d7eb2c7c4e5852

--


[Issue 12538] ZeroBUGS links are broken

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12538

--- Comment #2 from Martin Nowak c...@dawg.eu ---
https://github.com/D-Programming-Language/dlang.org/commit/9520e19218eb921b1dc0a7eb6f40be42fcdf9684

--


[Issue 12615] New: Warn against, and then deprecate old alias syntax

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12615

  Issue ID: 12615
   Summary: Warn against, and then deprecate old alias syntax
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: bearophile_h...@eml.cc

Now we have the syntax:

alias T = int;

So this syntax should give a warning, later a deprecation message, and later an
error:

alias int T;

(The alias this syntax must be kept, it's for another purpose.)

--


[Issue 12616] New: AssertError in std.utf.decode

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12616

  Issue ID: 12616
   Summary: AssertError in std.utf.decode
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: Phobos
  Assignee: nob...@puremagic.com
  Reporter: dmitryc...@gmail.com

Created attachment 1347
  -- https://issues.dlang.org/attachment.cgi?id=1347action=edit
Frament of torrent file with bug (binary data)

I use std.utf.validate to check validity string of UTF. And i catch
UTFException if string not valid. But... In debug mode i have AssertError:

core.exception.asserter...@std.utf(950): Assertion failure


My code:

try {
root.str = cast(string) store.str;   // from immutable(ubyte)[]
validate(root.str);
} catch(UTFException e) {
root.str = toHexString!(LetterCase.upper)(store.str);
}

It work on release mode.

--


[Issue 12617] New: Add old-style operator overloading to the Deprecated Features page

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12617

  Issue ID: 12617
   Summary: Add old-style operator overloading to the Deprecated
Features page
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: bearophile_h...@eml.cc

The old operator overloading scheme should be added to this page:
http://dlang.org/deprecate.html

See also Issue 10320

--


[Issue 10320] Warning for old-style operator overloading methods definition

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10320

--- Comment #3 from bearophile_h...@eml.cc ---
See also issue 12617

--


[Issue 11978] std.algorithm canFind uses value where it means needle

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11978

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

   What|Removed |Added

   Keywords||pull
URL||https://github.com/D-Progra
   ||mming-Language/phobos/pull/
   ||2101
 CC||andrej.mitrov...@gmail.com
  Component|websites|Phobos
Version|unspecified |D2
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
I wish the new ddoc parameter check feature found this. I've found a bunch more
of these wrongly documented sections.

--


[Issue 11846] Missing pragma/(mangle) documentation

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11846

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

   What|Removed |Added

   Keywords||pull, spec
URL||https://github.com/D-Progra
   ||mming-Language/dlang.org/pu
   ||ll/550
 CC||andrej.mitrov...@gmail.com
Version|unspecified |D2
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 11867] Documentation for new package.d feature

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11867

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

   What|Removed |Added

   Keywords||pull, spec
URL||https://github.com/D-Progra
   ||mming-Language/dlang.org/pu
   ||ll/551
 CC||andrej.mitrov...@gmail.com
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 11978] std.algorithm canFind uses value where it means needle

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11978

--- Comment #3 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/d4b0e70c67b4031bd0dd3f167a7ecfb29e305175
Fix Issue 11978 - Fix typos in std.algorithm documentation referencing
parameter names.

https://github.com/D-Programming-Language/phobos/commit/dba14a1edb9bead15d5a2ecedccd6944767a92a8
Merge pull request #2101 from AndrejMitrovic/Fix11978

Fix Issue 11978 - Fix typos in std.algorithm documentation referencing p...

--


[Issue 11763] [ICE] Internal error: ../ztc/cgcs.c 351

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11763

brian-sch...@cox.net changed:

   What|Removed |Added

   Keywords||ice, ice-on-valid-code,
   ||industry
 CC||brian-sch...@cox.net

--- Comment #1 from brian-sch...@cox.net ---
Another test case:

-

alias CountsList = HashMap!(string, int);

void main()
{
CountsList[string] countsByOnet;
countsByOnet[1] = CountsList(128);
}

struct HashMap(K, V)
{
this(this) {}
this(size_t) {}
~this() {}
}

--


[Issue 11705] std.typecons.Typedef is missing proper documentation

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11705

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

   What|Removed |Added

   Keywords||pull
URL||https://github.com/D-Progra
   ||mming-Language/phobos/pull/
   ||2102
 CC||andrej.mitrov...@gmail.com
  Component|websites|Phobos
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com
Summary|Documentation of the cookie |std.typecons.Typedef is
   |of std.typecons.Typedef |missing proper
   ||documentation
   Severity|minor   |normal

--


[Issue 11829] Documentation of implicit template argument conversion out of date.

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11829

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
This was fixed, no idea when though.

--


[Issue 11665] out of date final and invariant documentation still available at dlang.org

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11665

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
It's not being hosted anymore.

--


[Issue 11625] Phobos documentation root is out of date

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11625

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

   What|Removed |Added

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

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
Hmm.. if we had an std package then we could simply document this there, and it
would be kept relatively up-to-date, or add some ddoc feature to extract the
summaries out of every module and inject them to the package module which
imports those modules.

--


[Issue 12210] dlang.org home page example - Run button does not work

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12210

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

   What|Removed |Added

 CC||vertig...@gmx.net

--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
*** Issue 11498 has been marked as a duplicate of this issue. ***

--


[Issue 11498] Running code snippets on dlang.org is broken

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11498

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---


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

--


[Issue 11104] Document exact behavior of structsasd initialization inside AA

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11104

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |FIXED

--


[Issue 12299] DMD accepts invalid alias of 'ref int'

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12299

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---


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

--


[Issue 11632] Old alias syntax accepts ref

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

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

   What|Removed |Added

 CC||brian-sch...@cox.net

--- Comment #4 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
*** Issue 12299 has been marked as a duplicate of this issue. ***

--


[Issue 11632] Old alias syntax accepts ref

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

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

   What|Removed |Added

 CC||callumena...@gmail.com

--- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
*** Issue 12257 has been marked as a duplicate of this issue. ***

--


[Issue 10233] [Tracker] Grammar issues

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233
Issue 10233 depends on issue 12299, which changed state.

Issue 12299 Summary: DMD accepts invalid alias of 'ref int'
https://issues.dlang.org/show_bug.cgi?id=12299

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--


[Issue 12257] Alias declaration grammar spec

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12257

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

   What|Removed |Added

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

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---


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

--


[Issue 11704] std.conv.to fails from string to std.typecons.Typedef

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11704

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

   What|Removed |Added

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

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
This is really just one specific case of Typedef not being handled. I bet a lot
of Phobos code simply doesn't work with Typedef. I'm not sure whether it's
worth adding support, it might open a can of worms (or enhancement requests..).

--


[Issue 12597] Payload getter for std.typecons.Typedef

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12597

--- Comment #6 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
You seem to have filed https://issues.dlang.org/show_bug.cgi?id=11706 before,
maybe we should just implement that instead? Then the cast would be safe.

--


[Issue 11763] [ICE] Internal error: ../ztc/cgcs.c 351

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11763

Justin Whear jus...@economicmodeling.com changed:

   What|Removed |Added

 CC||jus...@economicmodeling.com

--


[Issue 6585] std.variant cannot handle shared arrays

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6585

jean-loup.tas...@epfl.ch changed:

   What|Removed |Added

 CC||jean-loup.tas...@epfl.ch
  Component|DMD |Phobos

--- Comment #1 from jean-loup.tas...@epfl.ch ---
This bug is still present in Phobos 2.065.0.
See: http://dpaste.dzfl.pl/79743d502b27

As pointed out by David, this seems to be caused by Variant trying to pass a
shared(double)* to the C function stdc.string.memcpy (btw, it is not specific
to double). The error message has now become more cryptic.

The same test case for Variant (http://dpaste.dzfl.pl/e0dcfdf241bb) now gives
(truncated output for DMD):
---
/usr/include/dlang/dmd/std/variant.d(585): Error: function
core.stdc.string.memcpy (void* s1, const(void*) s2, ulong n) is not callable
using argument types (ubyte[32]*, shared(double)*, ulong)
/usr/include/dlang/dmd/std/variant.d(427): Error: template instance
std.variant.VariantN!(32LU).VariantN.opAssign!(shared(double)) error
instantiating
---

--


[Issue 11706] Alias to the original type inside std.typecons.Typedef

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11706

--- Comment #1 from bearophile_h...@eml.cc ---
An alternative solution is to use something in std.traits to get the underlying
type of a Typedef.

--


[Issue 12597] Payload getter for std.typecons.Typedef

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12597

--- Comment #7 from bearophile_h...@eml.cc ---
(In reply to Andrej Mitrovic from comment #5)

 there are plenty of people on IRC that keep asking about it
 though, I typically don't recommend them to use Typedef since it's full of
 bugs.

While not strictly necessary, something like typedef/Typedef is sometimes
useful. In Haskell there's a built-in way to do it, using newtype, and the
GHC compiler has one or more non-standard extensions
(GeneralizedNewtypeDeriving) to improve the use of newtype.


(In reply to Andrej Mitrovic from comment #6)
 You seem to have filed https://issues.dlang.org/show_bug.cgi?id=11706
 before, maybe we should just implement that instead? Then the cast would be
 safe.

The need to find the underlying type and the underlying value are both present.
So I think we need both enhancements. (I have also just added a note to Issue
11706 ). If you want to implement only one of the two, then I suggest to
implement a way to get the underlying value, because then getting the type is
one typedef away.

--


[Issue 12597] Payload getter for std.typecons.Typedef

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12597

--- Comment #8 from bearophile_h...@eml.cc ---
(In reply to bearophile_hugs from comment #7)

because then getting the type is one typedef away.

Sorry, I meant to write one typeof away.

--


[Issue 11462] std.algorithm.multiSort is missing from the index

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11462

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

   What|Removed |Added

   Keywords||pull
 CC||andrej.mitrov...@gmail.com
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com
Summary|std.algorithm.multiSort |std.algorithm.multiSort is
   |documentation   |missing from the index
   Severity|trivial |normal

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
https://github.com/D-Programming-Language/phobos/pull/2103

--


[Issue 10934] D logo missing when building website on Windows

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10934

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

   What|Removed |Added

   Keywords||pull
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
https://github.com/D-Programming-Language/dlang.org/pull/552

--


[Issue 10764] bug reporting / better linking to issue tracker / include resolved in default search

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10764

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

   What|Removed |Added

   Keywords||pull
 CC||andrej.mitrov...@gmail.com
Version|unspecified |D2
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
https://github.com/D-Programming-Language/dlang.org/pull/553

--


[Issue 10935] Malformed std.windows.charset reference

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10935

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
That module/page doesn't exist anymore, closing.

--


[Issue 12618] New: bugstats graph broken since bugzilla upgrade

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12618

  Issue ID: 12618
   Summary: bugstats graph broken since bugzilla upgrade
   Product: D
   Version: unspecified
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: e...@gnuk.net

The graph image
https://issues.dlang.org/graphs/D_NEW_ASSIGNED_REOPENED_RESOLVED.png is now
404 and the image link
https://d.puremagic.com/issues/reports.cgi?product=Ddatasets=NEW%3Adatasets=ASSIGNED%3Adatasets=REOPENED%3Adatasets=RESOLVED%3A
takes you to bugzilla with an error Invalid datasets
NEW%3A:ASSIGNED%3A:REOPENED%3A:RESOLVED%3A. Only digits, letters and colons are
allowed.

--


[Issue 10954] Include IDE integration downloads on dlang's download page

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10954

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
VisualD is now listed on the downloads page.

Although.. it's still not very discoverable since there's a mountain of tables.
Really bad UX imo, it looks like a geocities web shop.

--


[Issue 11625] Phobos documentation root is out of date

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11625

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---


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

--


[Issue 10284] dlang.org/phobos/index.html needs redesign

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10284

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

   What|Removed |Added

 CC||l...@luismarques.eu

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
*** Issue 11625 has been marked as a duplicate of this issue. ***

--


[Issue 12619] New: Invalid warning for unused return value of debug memcpy

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12619

  Issue ID: 12619
   Summary: Invalid warning for unused return value of debug
memcpy
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Keywords: diagnostic, rejects-valid
  Severity: regression
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: bearophile_h...@eml.cc

Technically this is a regression, but it's a minor one. Issue found by
CyberShadow:


void main() pure {
import core.stdc.string: memcpy;
ubyte[10] a, b;
debug memcpy(a.ptr, b.ptr, 5);
}


DMD 2.066alpha gives:

test2.d(4,17): Warning: Call to function core.stdc.string.memcpy without side
effects discards return value of type void*, prepend a cast(void) if
intentional


memcpy is weakly pure, so I think you should not get that warning, that I think
should be only for strongly pure functions.

--


[Issue 10285] Enum grammar documentation is incorrect

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10285

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

   What|Removed |Added

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

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
(In reply to brian-schott from comment #0)
 The documentation for EnumMember states that it can consist of type '='
 assignExpression, but comments in the the compiler source code indicate
 that this should actually be type Identifer '=' assignExpression.

You mean this?:

-
alias Base = int;
enum : Base
{
x = 1
}
-

This is a supported feature.

 Another issue is that the grammar does not disallow the type Identifier '='
 assignExpression syntax if the enum has a name or base type specified, but
 DMD's parser does.

I'm not sure what exactly the parser disallows. Can you post an example?

--


[Issue 10564] Errors on the Template page of the language specification

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10564

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

   What|Removed |Added

   Keywords||pull
 CC||andrej.mitrov...@gmail.com
Version|unspecified |D2

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
(In reply to Tommi from comment #0)
 These are found on the page:
 http://dlang.org/template.html
 
 1) In the spec it says:
 ...but at least according to DMD, TFoo!(3) and TFoo!(3u) refer to the same
 type.

Fixed a while ago.

 2) In the spec it says:
 
 ...but the last line should be:
 Foo(x);// T is int, U is int*

Thanks, will be fixed.

https://github.com/D-Programming-Language/dlang.org/pull/554

--


[Issue 10564] Errors on the Template page of the language specification

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10564

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

   What|Removed |Added

   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--


[Issue 12620] New: Compiler picks lesser template specialization match for float array alias value parameters

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12620

  Issue ID: 12620
   Summary: Compiler picks lesser template specialization match
for float array alias value parameters
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: andrej.mitrov...@gmail.com

-
template Foo(alias sym) { pragma(msg, Foo1); }
template Foo(alias int[] sym)   { pragma(msg, Foo2); }
template Foo(alias float[] sym) { pragma(msg, Foo3); }

void main()
{
alias foo1 = Foo!(1);  // instantiates #1, ok
alias foo2 = Foo!([1]);// instantiates #2, ok
alias foo3 = Foo!([1.0]);  // instantiates #1 instead of #3!
}
-

--


[Issue 10231] Spec: Document alias value feature

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10231

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

   What|Removed |Added

   Keywords||pull
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com
   Severity|minor   |normal

--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
https://github.com/D-Programming-Language/dlang.org/pull/555

--


[Issue 10231] Spec: Document typed alias parameter feature

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10231

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

   What|Removed |Added

Summary|Spec: Document alias value  |Spec: Document typed alias
   |feature |parameter feature

--


[Issue 10222] Instructions for building dmd and Phobos on OSX are wrong

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10222

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
osx.mak is not referenced anymore.

--


[Issue 10285] Enum grammar documentation is incorrect

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10285

--- Comment #2 from brian-sch...@cox.net ---
The compiler accepts this even though it makes no sense:

enum
{
int = 5
}

The compiler rejects this though the grammar allows it:

enum A
{
int b = 5
}

--


[Issue 10285] Enum grammar documentation is incorrect

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10285

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

   What|Removed |Added

   Keywords||pull
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com

--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
(In reply to brian-schott from comment #2)
 The compiler accepts this even though it makes no sense:
 
 enum
 {
 int = 5
 }

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

A spec pull will have to be made for the second issue.

--


[Issue 9556] Missing underscore in docs for std.string.isNumeric

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9556

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

   What|Removed |Added

   Keywords||pull
 CC||andrej.mitrov...@gmail.com
  Component|websites|Phobos
   Assignee|nob...@puremagic.com|andrej.mitrov...@gmail.com
Summary|Documentation of|Missing underscore in docs
   |std.string.isNumeric|for std.string.isNumeric

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
https://github.com/D-Programming-Language/phobos/pull/2104

--


[Issue 9379] Define a few good .ddoc files

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9379

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
(In reply to Andrej Mitrovic from comment #1)
 Here's one from H.S. Teoh:
 
 https://github.com/quickfur/Viola-ddoc-macros/blob/master/viola.ddoc

I think we should maybe make a DWiki page and post this and other .ddoc schemes
there, and maybe linkback to the wiki page from dlang.org.

--


[Issue 9388] Download link for dmd-compatible curl is dead

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9388

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
Seems to work now.

--


[Issue 9529] Switch Statement grammar bug for the chain of case statements

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9529

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

   What|Removed |Added

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

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
This seems trivial but I can't work with grammars. Can anyone fix this up if it
still needs fixing?

--


[Issue 9535] incomplete documentation for std.range.recurrence and std.range.sequence

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9535

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

   What|Removed |Added

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

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
(In reply to monarchdodra from comment #1)
 Per the discussion @
 http://forum.dlang.org/thread/kfvklb$aqu$1...@digitalmars.com
 
 I've got this one.

Any pulls coming? :

--


[Issue 9002] Document that `S s = S(...);` will not create temporaries

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9002

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
AFAICT Issue 10371 is a superset of this.

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

--


[Issue 10371] Document no copy construction occurs on struct initialization/`init` assignment

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10371

--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
*** Issue 9002 has been marked as a duplicate of this issue. ***

--


[Issue 8932] [Bugzilla] Version list in advanced search needs to be properly sorted

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8932

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
Seems the issue is sorted (heh) in the new bugzilla.

--


[Issue 12621] New: [Reg]: covariance no longer checked for function overriding

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12621

  Issue ID: 12621
   Summary: [Reg]: covariance no longer checked for function
overriding
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: regression
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@digitalmars.com

class C15
{
void foo() pure;
void bar();
}

class D15 : C15
{
override void foo();   // should issue a covariant error
override void bar() pure;  // not an error - pure can override impure
}

dmd used to diagnose this correctly. Same issue with nothrow and @safe
attributes.

--


[Issue 12615] Warn against, and then deprecate old alias syntax

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12615

Mike slavo5...@yahoo.com changed:

   What|Removed |Added

 CC||slavo5...@yahoo.com

--- Comment #1 from Mike slavo5...@yahoo.com ---
A prerequisite to this would be to replace all occurrences of the old syntax in
DRuntime and Phobos with the new syntax.

--


[Issue 8307] inconsistent treatment of auto functions

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8307

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
 auto foo(){ return 0; return 0.0; } // ok

Warning: statement is not reachable

 auto bar(int x){ if(x==0) return 0; return bar(x-1)+1; } // error

Error: forward reference to bar

The spec seems correct afaict, unless I'm missing something.

--


[Issue 8706] Tool reference page

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8706

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
It doesn't seem to be referenced from any other pages anymore, and the .dd
source file is gone.

--


[Issue 12615] Warn against, and then deprecate old alias syntax

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12615

--- Comment #2 from bearophile_h...@eml.cc ---
(In reply to Mike from comment #1)
 A prerequisite to this would be to replace all occurrences of the old syntax
 in DRuntime and Phobos with the new syntax.

Right. And the warning will help find all those occurrences.

--


[Issue 12615] Warn against, and then deprecate old alias syntax

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12615

brian-sch...@cox.net changed:

   What|Removed |Added

 CC||brian-sch...@cox.net

--- Comment #3 from brian-sch...@cox.net ---
dscanner --styleCheck will find them for you.

https://github.com/Hackerpilot/Dscanner/

--


[Issue 10033] Wrong example in chapter Vector Extensions

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10033

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

https://github.com/D-Programming-Language/dlang.org/commit/51b3f45e6761beff84a1f22984fa5d937f52364b
Fix Issue 10033 - Wrong example in chapter Vector Extensions.

https://github.com/D-Programming-Language/dlang.org/commit/3835280663863727db132efc1313c718d08c5040
Merge pull request #556 from AndrejMitrovic/Fix10033

[Trivial] Issue 10033 - Wrong example in chapter Vector Extensions.

--


[Issue 10033] Wrong example in chapter Vector Extensions

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10033

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

   What|Removed |Added

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

--


[Issue 10231] Spec: Document typed alias parameter feature

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10231

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

https://github.com/D-Programming-Language/dlang.org/commit/1b65c456b7a5c06aaad2945cb14edcc99f29d41a
Fix Issue 10231 - Document typed alias parameters.

https://github.com/D-Programming-Language/dlang.org/commit/2777f8da42e2f164aa1429d7734e85efc4c03be0
Merge pull request #555 from AndrejMitrovic/Fix10231

Issue 10231 - Document typed alias parameters.

--


[Issue 10231] Spec: Document typed alias parameter feature

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10231

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

   What|Removed |Added

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

--


[Issue 10564] Errors on the Template page of the language specification

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10564

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

https://github.com/D-Programming-Language/dlang.org/commit/0e4e60436d430eef73a41e44f587312bbc7ab546
Fix Issue 10564 - Fix wrong call to template.

https://github.com/D-Programming-Language/dlang.org/commit/8199fd5a3087e330521538190b279649d93dd587
Merge pull request #554 from AndrejMitrovic/Fix10564

[Trivial] Issue 10564 - Fix wrong call to template.

--


[Issue 10564] Errors on the Template page of the language specification

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10564

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

   What|Removed |Added

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

--


[Issue 12622] New: Purity, @safe not checked for pointers to functions

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12622

  Issue ID: 12622
   Summary: Purity, @safe not checked for pointers to functions
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: major
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@digitalmars.com

Given:

  void bar16();

  @safe void foo16() {
auto fp = bar16;
(*fp)();  // should give error

bar16();  // correctly gives error
  }

Replacing @safe with purity or @nogc, and no error is given. It does work for
nothrow.

--


[Issue 10764] bug reporting / better linking to issue tracker / include resolved in default search

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10764

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

https://github.com/D-Programming-Language/dlang.org/commit/2357dd16850769cf99164fbf19a72c63571a788f
Fix Issue 10764 - Add some description and links to where bugs can be reported
and search from.

https://github.com/D-Programming-Language/dlang.org/commit/62602806b715169af785f6f27b9f341a1c01bc28
Merge pull request #553 from AndrejMitrovic/Fix10764

Issue 10764 - Add some description and links to where bugs can be found

--


[Issue 11865] Unhandled exception does not show crash dialog

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11865

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

https://github.com/D-Programming-Language/dlang.org/commit/779142e3332a07ce3bf431befb572bafd5024066
Fix Issue 11865 - Document the package module feature.

https://github.com/D-Programming-Language/dlang.org/commit/b0e70804c9afe9a8f5602f51bc1bbce367ac0c45
Merge pull request #551 from AndrejMitrovic/Fix11867

Issue 11865 - Document the package module feature.

--


[Issue 11846] Missing pragma/(mangle) documentation

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11846

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

   What|Removed |Added

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

--


[Issue 11846] Missing pragma/(mangle) documentation

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11846

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

https://github.com/D-Programming-Language/dlang.org/commit/ec559bec0e36fcc4e7b442f1d77a94d169d5e939
Fix Issue 11846 - Document pragma(mangle) feature.

https://github.com/D-Programming-Language/dlang.org/commit/6ce038f51e5cc481e45b6293a94fcaa6e20c097f
Merge pull request #550 from AndrejMitrovic/Fix11846

Issue 11846 - Document pragma(mangle) feature.

--


[Issue 8307] inconsistent treatment of auto functions

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8307

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

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |---

--- Comment #3 from timon.g...@gmx.ch ---
(In reply to Andrej Mitrovic from comment #2)
 
 The spec seems correct afaict,

???

 unless I'm missing something.

In 'foo' the types of the two return expressions do not 'match exactly', yet it
is accepted. In 'bar' according to the spec the return type is settled after
the first return statement, hence there would _not_ be a circular dependency.

--


[Issue 12621] [Reg]: covariance no longer checked for function overriding

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12621

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Kenji Hara k.hara...@gmail.com ---
It's a feature introduced from 2.059, which was implemented by YOU.

https://github.com/D-Programming-Language/dmd/commit/5c75bb31dd99a33b921f6038e3d1c1d7eb0333cd

Now the feature is properly documented.

https://github.com/D-Programming-Language/dlang.org/pull/225

--


[Issue 9245] [CTFE] postblit not called on static array initialization

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9245

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

   What|Removed |Added

   Keywords||pull

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

--


[Issue 11867] Documentation for new package.d feature

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11867

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

   What|Removed |Added

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

--- Comment #1 from Kenji Hara k.hara...@gmail.com ---
 Commits pushed to master at
 https://github.com/D-Programming-Language/dlang.org
 
 https://github.com/D-Programming-Language/dlang.org/commit/
 779142e3332a07ce3bf431befb572bafd5024066
 Fix Issue 11865 - Document the package module feature.
 
 https://github.com/D-Programming-Language/dlang.org/commit/
 b0e70804c9afe9a8f5602f51bc1bbce367ac0c45
 Merge pull request #551 from AndrejMitrovic/Fix11867
 
 Issue 11865 - Document the package module feature.

Fixed.

--


  1   2   >