[Issue 3266] New: rdmd links core.thread twice

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3266

   Summary: rdmd links core.thread twice
   Product: D
   Version: 2.031
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: minor
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: la...@virginia.edu


Consider the following minimal code in threadbug.d:

import core.thread;
void main() { }


Running 

rdmd threadbug.d

gives many linker error messages stating that the core.thread functions are
present in both the rdmd-generated temporary threadbug.o and the libphobos1.a
library file; for instance:

/usr/opt/dmd2/linux/lib/libphobos2.a(thread_42_258.o): In function
`_D4core6thread6Thread6__ctorMFPFZvkZC4core6thread6Thread':
core/thread.d:(.text._D4core6thread6Thread6__ctorMFPFZvkZC4core6thread6Thread+0x0):
multiple definition of
`_D4core6thread6Thread6__ctorMFPFZvkZC4core6thread6Thread'
/tmp/rdmd-threadbug.d-90B05FDCCD9547CEC2BBFC3765364CC0/threadbug.o:/usr/opt/dmd2/src/druntime/import/core/sys/posix/sched.d:(.text._D4core6thread6Thread6__ctorMFPFZvkZC4core6thread6Thread+0x0):
first defined here


Running 

dmd -run threadbug.d 

gives no errors.

It appears that rdmd's include-all-dependencies-in-the-o-file approach lacks
the proper exception for core.thread.

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


[Issue 3266] rdmd links core.thread twice

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3266


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||and...@metalanguage.com




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


[Issue 3267] New: int delegate() should be implicitly castable to const(int) delegate()

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3267

   Summary: int delegate() should be implicitly castable to
const(int) delegate()
   Product: D
   Version: 2.031
  Platform: Other
OS/Version: Windows
Status: NEW
  Keywords: rejects-valid
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: clugd...@yahoo.com.au


Test case:
---
void foo(const int x) {
   int delegate(int t) bar = (int t){ return x; };
}
--
bug.d(3): Error: cannot implicitly convert expression (__dgliteral1) of type c
onst(int) delegate(int t) to int delegate(int t)

// But this one works
void foo(const int x) {
   int delegate(int t) bar = (int t){ return x+0; };
}

I think the reason for this is that 
TypeDelegate::implicitConvTo() is not defined.
It should allow implicit conversions of return value between type const(T),
immutable(T), and type T, when T is a value type. Certainly for delegate
literals.

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


[Issue 3260] Error: undefined identifier backend when compiling 'write' with 'wchar'

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3260


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Comment #2 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
08:51:08 PDT ---
Fix coming with the next release of Phobos.

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


[Issue 1940] Phobos buildscripts do not work on x86_64

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1940


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Comment #23 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
12:02:38 PDT ---
I'll close this bug now because I think I've addressed the concerns. If there's
anything left, please reopen.

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


[Issue 2150] cannot get values from const variant

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2150


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
13:08:53 PDT ---
Fixed in the next release. (I'm still unhappy about a few details about Variant
and const.)

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


[Issue 3268] can't compare pointer to functions when one is const

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3268





--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
14:11:13 PDT ---
void fun() {}

void main()
{
auto a = fun;
const b = a;
assert(a == b);
}

This fails to compile. The error message is odd too:

Error: array equality comparison type mismatch, void function() vs const(void
function())

The code should work.

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


[Issue 2669] Variant does not have opApply or another iteration mechanism

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2669


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Comment #3 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
14:27:32 PDT ---
I implemented a rather limited opApply for now, but I'll keep this open while I
think of a better solution.

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


[Issue 2784] Interfaces should be able to require type definitions

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2784


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
14:29:32 PDT ---
I'm dropping this because introspection seems to be a better path to achieving
such requirements.

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


[Issue 2976] rename retreatN to retreat

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2976


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #2 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
14:39:32 PDT ---
I ended up calling it popBackN.

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


[Issue 2980] compiler error when writefln( uint )

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2980


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Comment #4 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
14:41:02 PDT ---
Time to close this fella.

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


[Issue 2576] ICE(mtype.c, MODconst) - forward reference of aliased-type string constant

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2576


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




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


[Issue 2976] rename retreatN to retreat

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2976





--- Comment #4 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
18:23:40 PDT ---
(In reply to comment #3)
 Are you going to rename advance to popFrontN?

Great idea! Just did so, thanks.

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


[Issue 2992] std.typecons has unnecessary thread local globals

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2992


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||LATER




--- Comment #3 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
19:28:25 PDT ---
I will close this bug for the time being.

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


[Issue 3009] format.d(2072) uses deprecated function

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3009


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 AssignedTo|and...@metalanguage.com |bugzi...@digitalmars.com




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
21:51:07 PDT ---
This is very odd. If I comment out toString, the example compiles and runs.
There must be something odd going on in the compiler. Deferring to Walter.

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


[Issue 2996] std.typetuple: add support for any static tuples

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2996


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
21:29:57 PDT ---
Integrated patch. This is getting a bit hairy so probably it points to a
problem in the language. Thanks, Shin!

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


[Issue 3017] doc errors in std.range (on behalf of Steven Schveighoffer)

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3017


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
22:15:02 PDT ---
Thanks for the comments and suggestions.

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


[Issue 3025] uniform(float, float) pops first, uniform(int, int) pops last

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3025


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
22:23:09 PDT ---
I always call popFront at the end now.

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


[Issue 3037] Off-by-one error in Stride.length

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3037


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
22:31:31 PDT ---
I fixed length like this:

return (_input.length - 1) / _n + 1;

Thanks!

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