[Issue 4831] Optlink rejects paths with invalid characters based on HPFS filesystem instead of NTFS

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4831

--- Comment #13 from Jonathan Marler johnnymar...@gmail.com ---
Andrei I believe he's referring to my PR. The issue described by the
description of this bug was fixed (having '+' signs in the path), however,
based on the title I'm not sure it fixed everything.  If there are any other
characters in the path that would cause optlink to fail I can take a look.  Do
you know of any more cases to test?

Also, it is a workaround because optlink now ignores any paths containing a '+'
character.  I believe that making optlink accept paths with '+' character may
be a much bigger change.  I didn't want my first contribution to optlink to be
too big so I opted for the workaround (which was around 15 lines of code). 
Maybe I'll spend some time on this problem later.  If you have any more dire
issues post them here.

--


[Issue 481] Letting compiler determine length for fixed-length arrays

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=481

--- Comment #22 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/42b76791b5ecc8ca9c3f7611e3234e372d86502d
fix Issue 481 - Letting compiler determine length for fixed-length arrays

https://github.com/D-Programming-Language/dlang.org/commit/90f4144d0e93d4bf83941f174210eae45a9e498c
Merge pull request #590 from 9rnsr/fix481

Issue 481 - Letting compiler determine length for fixed-length arrays

--


[Issue 4831] Optlink rejects paths with invalid characters based on HPFS filesystem instead of NTFS

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4831

--- Comment #12 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
(In reply to  from comment #11)
 Seems like the merged pull is only a workaround. Why not pull the real fix
 instead?
 https://github.com/DigitalMars/optlink/pull/1

I don't think my fix was fully complete.

--


[Issue 14083] Remained unresolved forward reference issue with template classes

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14083

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/4358

--


[Issue 14082] RedBlackTree unittest fails with custom predicate less

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14082

--- Comment #6 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/acac6266085454224b144316b088f62fc96d95b5
Fix issue 14082 -- unit test should only test known cases in red black tree.

https://github.com/D-Programming-Language/phobos/commit/a4bd3dff631372062d192a7295eff3401098b7f5
Merge pull request #2936 from schveiguy/issue14082

Fix issue 14082 -- RedBlackTree unittest fails with custom predicate less

--


[Issue 14082] RedBlackTree unittest fails with custom predicate less

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14082

--- Comment #5 from Steven Schveighoffer schvei...@yahoo.com ---
PR: https://github.com/D-Programming-Language/phobos/pull/2936

--


[Issue 13998] Wrong code with -O -inline, loops, and taking address of double

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13998

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

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #2 from Walter Bright bugzi...@digitalmars.com ---
Can repro on Windows 64 bit.

--


[Issue 14061] Refused array concat at compile-time

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14061

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

https://github.com/D-Programming-Language/dmd/commit/4bedd6bf67e365d7ed5226bd2b8b9667f07fd897
fix Issue 14061 - Refused array concat at compile-time

https://github.com/D-Programming-Language/dmd/commit/4624de6ecddf553aaa1e6d008d38529dd259fb76
Merge pull request #4356 from 9rnsr/fix14061

[REG2.067a] Issue 14061 - Refused array concat at compile-time

--


[Issue 14057] [REG2.066] opSlice not working correctly with AliasThis

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14057

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

https://github.com/D-Programming-Language/dmd/commit/8aec324a4b536e027b5815047944492305acea6d
fix Issue 14057 - opSlice not working correctly with AliasThis

https://github.com/D-Programming-Language/dmd/commit/dd4ce3362351d53eadc0734fc3f2652553b7a518
Merge pull request #4350 from 9rnsr/fix14057

[REG2.066] Issue 14057 - opSlice not working correctly with AliasThis

--


[Issue 14055] CTFE internal error with uninitialized array: Assertion failure: '0' on line 318 in file 'interpret.c'

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14055

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

https://github.com/D-Programming-Language/dmd/commit/7099d9a5512f3cf2208b7c0bd3ff3590bde5382e
fix Issue 14055 - CTFE internal error with uninitialized array: Assertion
failure: '0' on line 318 in file 'interpret.c'

scrubArray() should propagate ErrorExp if CTFE returns uninitialized value.

https://github.com/D-Programming-Language/dmd/commit/f687cd1522c941f5093cf5341300fc81b0c81868
Merge pull request #4348 from 9rnsr/fix14055

Issue 14055 - CTFE internal error with uninitialized array: Assertion failure:
'0' on line 318 in file 'interpret.c'

--


[Issue 14085] New: Broken links on dlang.org

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14085

  Issue ID: 14085
   Summary: Broken links on dlang.org
   Product: D
   Version: D2
  Hardware: All
   URL: http://dlang.org/
OS: All
Status: NEW
  Severity: normal
  Priority: P3
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: s...@iname.com

Created attachment 1472
  -- https://issues.dlang.org/attachment.cgi?id=1472action=edit
broken links found by my crawler

There are a number of broken links at the moment.  Many pages link to
nonexistent /phobos-prerelease/std_windows_charset.html or
/phobos/std_windows_charset.html; several others also return 404 errors at the
moment.  See attached.

--


[Issue 14083] Remained unresolved forward reference issue with template classes

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14083

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

https://github.com/D-Programming-Language/dmd/commit/6d59dd758b09a233d8262eebbd58fd80324f0435
fix Issue 14083 - Remained unresolved forward reference issue with template
classes

https://github.com/D-Programming-Language/dmd/commit/256fedad25f452b733d7413683477b36fbd3f68d
Merge pull request #4358 from 9rnsr/fix14083

Issue 14083 - Remained unresolved forward reference issue with template classes

--


[Issue 11488] FORTRAN FORI= Error

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11488

Stewart Gordon s...@iname.com changed:

   What|Removed |Added

 CC||s...@iname.com

--- Comment #1 from Stewart Gordon s...@iname.com ---
This would undesirably prevent - from being being chained with any unary
operator, not just another -.

I can't see such an error as being likely to occur.  If you mean the --
operator, how would a space between the two minuses creep in by accident?

--


[Issue 14084] cartesianProduct length is not defined

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14084

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

   What|Removed |Added

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

--


[Issue 14084] New: cartesianProduct length is not defined

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14084

  Issue ID: 14084
   Summary: cartesianProduct length is not defined
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: Phobos
  Assignee: nob...@puremagic.com
  Reporter: ilyayaroshe...@gmail.com

--


[Issue 14086] New: Invalid extern C++ name for constructor / destructor

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14086

  Issue ID: 14086
   Summary: Invalid extern C++ name for constructor / destructor
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: chatelet.guilla...@gmail.com

See the following code :
https://github.com/gchatelet/dlang_cpp_std/blob/0ff5abaf035a352dd3b46d5b19b2cd222cedf7a6/cpp_std.d

The constructor is mangled as :
std::basic_stringchar, std::char_traitschar, std::allocatorchar
::__ctor()

But should be defined as :
std::basic_stringchar, std::char_traitschar, std::allocatorchar
::basic_string()


Same thing for the destructor.

--


[Issue 14087] New: @disable this hides static opCall

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14087

  Issue ID: 14087
   Summary: @disable this hides static opCall
   Product: D
   Version: future
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: regression
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: acehr...@yahoo.com

This seems to be a regression due to the following change:

 
https://github.com/D-Programming-Language/dmd/commit/79ae211e71cf0937523010e39f7f0981e9550904

struct S
{
@disable this();

static void opCall()
{}
}

void main()
{}

Error: struct deneme.S static opCall is hidden by constructors and can never be
called

It doesn't seem right to me that a disabled constructor hides opCall.

Ali

--


[Issue 14086] Invalid extern C++ name for constructor / destructor

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14086

Guillaume Chatelet chatelet.guilla...@gmail.com changed:

   What|Removed |Added

   Keywords||C++

--


[Issue 13998] Wrong code with -O -inline, loops, and taking address of double

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13998

--- Comment #3 from Walter Bright bugzi...@digitalmars.com ---
https://github.com/D-Programming-Language/dmd/pull/4359

--


[Issue 14088] New: add Getting Started page to dlang.org

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14088

  Issue ID: 14088
   Summary: add Getting Started page to dlang.org
   Product: D
   Version: unspecified
  Hardware: x86
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: reachz...@gmail.com

I just think it's a good idea. See picture on:

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

--


[Issue 13998] Wrong code with -O -inline, loops, and taking address of double

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13998

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

https://github.com/D-Programming-Language/dmd/commit/97b5326d4317e0d171c0087b367eed5e5334305f
fix
Issue 13998 - Wrong code with -O -inline, loops, and taking address of double

https://github.com/D-Programming-Language/dmd/commit/f1b6d1386480936cf2f53475e88a56f8a3ed7507
Merge pull request #4359 from WalterBright/fix13988

[REG] fix Issue 13998 - Wrong code with -O -inline, loops, and taking address
of double

--


[Issue 13998] Wrong code with -O -inline, loops, and taking address of double

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13998

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

   What|Removed |Added

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

--


[Issue 14087] @disable this hides static opCall

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14087

Jonathan M Davis issues.dl...@jmdavisprog.com changed:

   What|Removed |Added

 CC||issues.dl...@jmdavisprog.co
   ||m

--- Comment #1 from Jonathan M Davis issues.dl...@jmdavisprog.com ---
Yeah. That sounds like a bug. static opCall isn't a constructor. At most, it's
a factory function, and it doesn't even have to be that (e.g. LocalTime and UTC
in std.datetime use it as the function to get at their singeltons - they're
classes though, not structs, and don't @disable this).

--


[Issue 14082] RedBlackTree unittest fails with custom predicate less

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14082

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

   What|Removed |Added

 CC||schvei...@yahoo.com
   Assignee|nob...@puremagic.com|schvei...@yahoo.com

--- Comment #1 from Steven Schveighoffer schvei...@yahoo.com ---
The real answer is that phobos unit tests should not run when you run your
private unit tests. That is really a language change that needs to happen.

The band-aid answer is that the unit tests should ONLY run if we know exactly
the instantiating parameters are. When I wrote those, I didn't consider that I
should worry about the less parameter.

--


[Issue 14082] RedBlackTree unittest fails with custom predicate less

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14082

--- Comment #2 from drug007 drug2...@bk.ru ---
I agree. Also I'm curious why RedBlackTree instance in Phobos unittest get less
from my private unittest?

--


[Issue 14082] RedBlackTree unittest fails with custom predicate less

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14082

--- Comment #3 from Steven Schveighoffer schvei...@yahoo.com ---
(In reply to drug007 from comment #2)
 I agree. Also I'm curious why RedBlackTree instance in Phobos unittest get
 less from my private unittest?

RedBlackTree unit tests are done inside the class, so every instantiation of
RBT creates its own set of unit tests. It's actually quite useful, I found
about 3 compiler bugs because of it.

But the drawback is that EVERY instantiation of RBT creates its own unit tests.
And it's nearly impossible to make a unit test that works for every
instantation.

So I have code that limits when unit tests run, based on the *type* of the data
stored. But I never thought of limiting it based on the lambda. I just have to
add a few static ifs, and you will be all set.

--


[Issue 14082] RedBlackTree unittest fails with custom predicate less

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14082

--- Comment #4 from drug007 drug2...@bk.ru ---
I see. Thanks for clarification!

--


[Issue 14083] New: Remained unresolved forward reference issue with template classes

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14083

  Issue ID: 14083
   Summary: Remained unresolved forward reference issue with
template classes
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Keywords: rejects-valid
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: k.hara...@gmail.com

From: http://forum.dlang.org/thread/rggurpzmskjxesfel...@forum.dlang.org

Following code should work, but doesn't.

import std.stdio;

class Base(T)
{
public void Foo(A!T a)
{
writeln(Base.Foo(A a));
}

public void Foo(B!T a)
{
writeln(Base.Foo(B a));
}
}

class A(T) : Base!T
{
public T v;
this(T v)
{
this.v = v;
}
}

class B(T) : Base!T
{
public override void Foo(A!T a)
{
writeln(A: , a.v);
}
}

int main()
{
A!int a = new A!(int)(1);
B!int b = new B!(int)();

a.Foo(b);
b.Foo(a);

return 0;
}

Output:

test.d(16): Error: class test.A!int.A is forward referenced when looking for
'v'
test.d(16): Error: class test.A!int.A is forward referenced when looking for
'opDot'
test.d(16): Error: class test.A!int.A is forward referenced when looking for
'opDispatch'
test.d(29): Error: no property 'v' for type 'test.A!int.A'
test.d(10): Error: template instance test.B!int error instantiating
test.d(16):instantiated from here: Base!int
test.d(35):instantiated from here: A!int

--


[Issue 4831] Optlink rejects paths with invalid characters based on HPFS filesystem instead of NTFS

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4831

 mailnew4s...@gmail.com changed:

   What|Removed |Added

 CC||mailnew4s...@gmail.com

--- Comment #11 from  mailnew4s...@gmail.com ---
Seems like the merged pull is only a workaround. Why not pull the real fix
instead?
https://github.com/DigitalMars/optlink/pull/1

--


[Issue 14081] Table in the document of std.bigint.BigInt.toString() duplicates.

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14081

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/phobos/pull/2935

--


[Issue 14081] New: Table in the document of std.bigint.BigInt.toString() duplicates.

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14081

  Issue ID: 14081
   Summary: Table in the document of std.bigint.BigInt.toString()
duplicates.
   Product: D
   Version: D2
  Hardware: All
   URL: http://dlang.org/phobos/std_bigint.html#.BigInt.toStri
ng
OS: All
Status: NEW
  Severity: minor
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: j...@red.email.ne.jp

Here is the whole table.
I'll send a small PR for this later.

The output format is controlled via formatString:
The output format is controlled via formatString:
-
dDecimal
xHexadecimal, lower case
XHexadecimal, upper case
sDefault formatting (same as d)
nullDefault formatting (same as d)
- # this line added by me
dDecimal
xHexadecimal, lower case
XHexadecimal, upper case
sDefault formatting (same as d)
nullDefault formatting (same as d)
-

--


[Issue 14082] New: RedBlackTree unittest fails with custom predicate less

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14082

  Issue ID: 14082
   Summary: RedBlackTree unittest fails with custom predicate less
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: minor
  Priority: P1
 Component: Phobos
  Assignee: nob...@puremagic.com
  Reporter: drug2...@bk.ru

import std.container: RedBlackTree;

class Test(T, alias less = ab)
{
alias Container = RedBlackTree!(T, less);
}

unittest
{
alias Foo = Test!(int);
}

void main() {}

run using rdmd -unittest filename.d

this code causes unittest failure:
std/container/rbtree.d
Lines 846-850:

static if(less == a  b)
auto vals = [1, 2, 3, 4, 5];
else
auto vals = [5, 4, 3, 2, 1];
assert(equal(r, vals)); 

because less is set to ab instead of a  b by default, i.e. spaces have
meaning here. What is the best way to fix that?

--


[Issue 14078] Call DTor for stack allocated objects

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14078

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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||schvei...@yahoo.com
 Resolution|--- |INVALID

--- Comment #8 from Steven Schveighoffer schvei...@yahoo.com ---
Ketmar is right. It's not possible. The compiler is not responsible for knowing
things at runtime.

Please use scoped, or suggest enhancements that would improve implementation.

--


[Issue 7687] Ddoc should be able to generate Jump to links

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #6 from Stewart Gordon s...@iname.com ---
(In reply to Nick Treleaven from comment #5)
 I was talking about for HTML generation. At the time the JS was first added,
 I don't think ddoc was in a good state, it has since improved significantly.

But Ddoc isn't an HTML generator.  It's a macro-based system capable of
generating documentation in a variety of formats.

--


[Issue 7687] Ddoc should be able to generate Jump to links

2015-01-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #7 from Nick Treleaven ntrel-...@mybtinternet.com ---
You asked why JS was used, I explained. Please implement this if you like.

--