[Issue 7802] UFCS functions get lost when type is transmitted to template

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7802



--- Comment #1 from Walter Bright  2012-03-30 
23:12:06 PDT ---
More details:

http://forum.dlang.org/post/op.wbyg2ywyeav7ka@localhost.localdomain

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


[Issue 7802] New: UFCS functions get lost when type is transmitted to template

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7802

   Summary: UFCS functions get lost when type is transmitted to
template
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: bugzi...@digitalmars.com


--- Comment #0 from Walter Bright  2012-03-30 
23:10:11 PDT ---
a.d
-
void foo(T)(T t) {
t.func();
}
-

test.d
-
class C { }
void func(C c) { }
void test(C c) {
foo(c);
-

This fails to compile because a.d doesn't know about test.func(C c), and so
does not find it when attempting to resolve t.func() using UFCS.

The solution is to:

If func() is not found as a member function of t, then look in the template
instantiation scope for a func(t). If found, use that as the UFCS function, and
then mark the template instantiation as LOCAL to the instantiation context.
This will ensure that the mangled name of the instantiation will not conflict
with other instantiations of foo(T) with other func(T) functions.

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


[Issue 7773] UCFS syntax on built-in attributes too?

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7773



--- Comment #2 from github-bugzi...@puremagic.com 2012-03-30 22:50:29 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/d7f3352f1fbd25fb4adfb5ef611924bf1ffd4919
Merge pull request #850 from 9rnsr/fix7773

fix Issue 7773 - UCFS syntax on built-in attributes too?

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


[Issue 7639] Undefined enum AA key crashes compiler

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7639


Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


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


[Issue 7785] [CTFE] ICE when slicing pointer to variable

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7785



--- Comment #2 from github-bugzi...@puremagic.com 2012-03-30 21:31:30 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bd6b7d24dc856ac77500179055db521bf3a71825
Merge pull request #851 from donc/ctfe7785pointerToVar

Fix issue 7785 [CTFE] ICE when slicing pointer to variable

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


[Issue 7639] Undefined enum AA key crashes compiler

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7639



--- Comment #1 from github-bugzi...@puremagic.com 2012-03-30 19:53:33 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/651c27363d05e6038792e0aa717682929385d007
Merge pull request #852 from donc/segfault7639

Fix issue 7639 Undefined enum AA key crashes compiler

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


[Issue 7380] Crash trying to use address of variable in struct constructor at module level

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7380



--- Comment #1 from github-bugzi...@puremagic.com 2012-03-30 18:44:00 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/648777b74259462eaa402b657411f2bd5950c9b0
Fix issue 7380 Crash trying to use address of variable in struct constructor
at module level

https://github.com/D-Programming-Language/dmd/commit/7536fd03d1326cbf5c327cce87f398dfbd46368d
Merge pull request #853 from donc/segfault7380

Fix issue 7380 segfault trying to use address of global variable in CTFE

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


[Issue 7478] segfault(attrib.c) compiling with -deps -release -inline

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7478



--- Comment #1 from Don  2012-03-30 17:14:49 PDT ---
It is crashing in AttribDeclaration::inlineScan(),

for (size_t i = 0; i < d->dim; i++)
{   Dsymbol *s = (*d)[i];
s->inlineScan();  //   < crashes here

It isn't a null pointer, it seems to be an invalid vtable (memory corruption?)

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


[Issue 7711] ICE when trying to use an AA with inout type.

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7711


Don  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||clugd...@yahoo.com.au
 Resolution||FIXED


--- Comment #1 from Don  2012-03-30 16:42:45 PDT ---
Works in git master

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


[Issue 7788] __gshared and UFCS - "Error: nested structs with constructors are not yet supported in CTFE (Bug 6419)"

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7788



--- Comment #6 from Don  2012-03-30 16:28:44 PDT ---
(In reply to comment #4)
> Pretty sure it worked at the start of this week.

It only gets a 'regression' tag if it worked as part of a release.

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


[Issue 7801] New: Nested function returning garbage instead of closed-over parameter

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7801

   Summary: Nested function returning garbage instead of
closed-over parameter
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: edmcc...@verizon.net


--- Comment #0 from edmcc...@verizon.net 2012-03-30 14:53:02 PDT ---
I ran into a strange and hard-to-describe problem with nested functions closing
over the argument to their enclosing function.

When a nested function (A) returns the value of another nested function (B)
that returns a parameter of the enclosing function (C), and when (A) is
returned from (C), then calling (A) returns an incorrect value if either run
from a 32-bit program, or run from 64-bit and (A) has a parameter of class type
(it works when (A) has no class parameters).

The following code demonstrates the issue:


auto foo(T)(int val)
{
int nested()
{
return val;
}

int escaping(T ignored)
{
return nested();
}

return &escaping;
}

struct Bar {}

class Baz {}

void main()
{
auto func1 = foo!int(55);
auto val1 = func1(12);
// 64-bit ok, 32-bit fail (varying)
assert(val1 == 55);

auto func2 = foo!Bar(55);
Bar bar;
auto val2 = func2(bar);
// 64-bit ok, 32-bit fail (equal to incorrect val1)
assert(val2 == 55);

auto func3 = foo!Baz(55);
auto baz = new Baz();
auto val3 = func3(baz);
// 64- and 32-bit fail (varying, different from val1/val2)
assert(val3 == 55);
}

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


[Issue 7800] Paths with square brackets cause link failure

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7800



--- Comment #1 from Ascend4nt  2012-03-30 09:23:58 PDT ---
I've also found this is a problem with the C++ linker, I'm assuming both are
based on the same codeset.

Additionally, folders with '+' in them cause issue, and probably any number of
other symbols (more testing would be needed)

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


[Issue 6217] [GSOC] result of std.algorithm.map is not movable

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6217


Dmitry Olshansky  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #1 from Dmitry Olshansky  2012-03-30 
08:35:27 PDT ---
https://github.com/D-Programming-Language/phobos/pull/462

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


[Issue 7718] regex and ctRegex produce different results

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7718


Dmitry Olshansky  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||dmitry.o...@gmail.com
 Resolution||FIXED


--- Comment #1 from Dmitry Olshansky  2012-03-30 
08:36:29 PDT ---
https://github.com/D-Programming-Language/phobos/pull/462

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


[Issue 7300] std.regex.ShiftOr!dchar.search is broken

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7300


Dmitry Olshansky  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||dmitry.o...@gmail.com
 Resolution||FIXED


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


[Issue 7800] New: Paths with square brackets cause link failure

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7800

   Summary: Paths with square brackets cause link failure
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Optlink
AssignedTo: nob...@puremagic.com
ReportedBy: ascend...@gmail.com


--- Comment #0 from Ascend4nt  2012-03-30 08:17:42 PDT ---
A path containing square brackets causes the following error message:
OPTLINK : Error 8: Illegal Filename

This happens if either the linker itself is located under a bracketed path, or
the object file. For example, both of these scenarios cause failure:

D Compiler path:
C:\[Programming]\dmd2

Source path:
C:\[MySrc]\HelloWorld.obj
C:\[MySrc]\HelloWorld.d

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


[Issue 7505] [your code here] tip points at the old NewsGroup page rather than the new forum

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7505



--- Comment #1 from simendsjo  2012-03-30 07:13:00 PDT ---
Fixed in
https://github.com/D-Programming-Language/d-programming-language.org/pull/105

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


[Issue 7709] Segfault when trying to use any property of an AA, which is the return type of a CTFE function with inout parameters.

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7709



--- Comment #3 from Don  2012-03-30 06:31:43 PDT ---
Works now, on git head. I don't think this had anything to do with CTFE.

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


[Issue 7300] std.regex.ShiftOr!dchar.search is broken

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7300



--- Comment #1 from github-bugzi...@puremagic.com 2012-03-30 06:26:53 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/84a847cbe18f6b42597436ce01a0d1b1ce932ff7
Merge pull request #462 from blackwhale/regex-fixes

fix Issue 7300 - std.regex.ShiftOr!dchar.search is broken

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


[Issue 7785] [CTFE] ICE when slicing pointer to variable

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7785


Don  changed:

   What|Removed |Added

   Keywords||CTFE, pull
 CC||clugd...@yahoo.com.au


--- Comment #1 from Don  2012-03-30 06:12:23 PDT ---
It also applies to indexing, and assignment to slices and indices:


int val = 7;
auto p = &val;
auto ary = p[0 .. 1]; // ICE 1
auto x = p[0];// ICE 2
p[0..1] = 1;  // ICE 3
p[0] = 6; // ICE 4

This pull request turns ICE 1 and ICE 3 into sensible error messages;
ICE 2 compiles without error (it only generates an error, if index is non-zero)
ICE 4 generates a "not yet implemented" error.

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

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


[Issue 7799] New: Can't use alias for overload resolution with alias this subtype

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7799

   Summary: Can't use alias for overload resolution with alias
this subtype
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic  2012-03-30 
05:57:38 PDT ---
class Foo
{
   bool test() { return true; }
}

class Bar
{
   Foo foo;
   alias foo this;
}

class FooBar : Bar
{
   bool test(int x) { return true; }
   alias super.test test;
}

void main() {}

test.d(17): Error: 'this' is only defined in non-static member
functions, not FooBar
test.d(17): Error: alias test.FooBar.test cannot alias an expression
(__error).foo.test

The error message is quite weird as well.

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


[Issue 7773] UCFS syntax on built-in attributes too?

2012-03-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7773


Kenji Hara  changed:

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Kenji Hara  2012-03-30 01:55:06 PDT ---
https://github.com/D-Programming-Language/dmd/pull/850

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