[Issue 767] compiler shall print dependencies and pragma(lib)

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=767


Rainer Schuetze r.sagita...@gmx.de changed:

   What|Removed |Added

 CC||r.sagita...@gmx.de


--- Comment #3 from Rainer Schuetze r.sagita...@gmx.de 2010-05-22 23:58:12 
PDT ---
I would like too see string imports to be shown in the dependencies:

c:\type test.d
int ver=mixin(import(Version));

c:\type version
42

c:\dmd -c -J. -deps=deps test.d

c:\type deps
test (test.d) : public : object (m:\\s\\d\\phobos\\druntime\\import\\object.di)

This should show version, too.

Libraries imported by pragma(lib) to be shown would be nice, but this is not
complete for a building tool, anyway, because pre-built libraries might force
the inclusion of more libraries. I'd like the linker to supply a list of
searched libraries.

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


[Issue 767] compiler shall print dependencies and pragma(lib)

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=767



--- Comment #4 from nfx...@gmail.com 2010-05-23 00:09:23 PDT ---
I figure dmd doesn't report these string imports because it would re

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


[Issue 767] compiler shall print dependencies and pragma(lib)

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=767



--- Comment #5 from nfx...@gmail.com 2010-05-23 00:14:12 PDT ---
I figure dmd doesn't report these string imports because it would require full
semantic analysis of the code. Which would be much slower, making the -deps
mode less useful.

Maybe the compiler should provide an -a flag, which automatically builds all
imported modules? Incremental building is broken anyway (at least due to bug
3274, other reasons include CTFE, which subverts module dependencies, and some
types of out-of-declaration bugs [forward refs]).

Then dmd would need to run semantically analysis only once to build a program.
To facilitate building relatively independent packages as libraries, another
flag could be added to dmd to exclude certain package paths using glob
patterns.

Sorry for the previous comment, I think I accidentally hit soem key
combination, that made the browser to submit the form.

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


[Issue 2835] std.socket.TcpSocket.connect doesn't actually connect

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2835


Sohgo Takeuchi so...@sohgo.dyndns.org changed:

   What|Removed |Added

 CC||so...@sohgo.dyndns.org


--- Comment #9 from Sohgo Takeuchi so...@sohgo.dyndns.org 2010-05-23 02:43:15 
PDT ---
Phobos1 has the same problem.
I am happy that this fix will be applied to the phobos1 too.
Thanks.

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


[Issue 4224] New: alias this and opDispatch

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4224

   Summary: alias this and opDispatch
   Product: D
   Version: unspecified
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: pelle.mans...@gmail.com


--- Comment #0 from Pelle M�nsson pelle.mans...@gmail.com 2010-05-23 03:07:15 
PDT ---
This structure:

struct A(T) {
T[string] table;

alias table this;

T opDispatch(string s)() {
return table[s];
}
}

void main() {
A!int a;

a[i] = 4;

writeln(a.i);
}

Gives the error:

test.d(56): Error: undefined identifier module test.i

I expected a.i to go to opDispatch when i was not found otherwise.

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


[Issue 767] compiler shall print dependencies and pragma(lib)

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=767



--- Comment #6 from Rainer Schuetze r.sagita...@gmx.de 2010-05-23 04:01:44 
PDT ---
-deps does not enable a different mode, it just tells dmd to output any file
imported to the given dependency file during the normal compilation process.

There is no need for an extra compilation step, just use the info in the
dependency file from the last compile to figure out if an update is necessary.

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


[Issue 3880] std.regex functions with const/immutable Regex object

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3880


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||rsi...@gmail.com
 Resolution||FIXED


--- Comment #1 from Shin Fujishiro rsi...@gmail.com 2010-05-23 04:59:19 PDT 
---
Fixed in svn r1545.

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


[Issue 4109] writeln doesn't work with empty static array

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4109


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||rsi...@gmail.com
 Resolution||FIXED


--- Comment #1 from Shin Fujishiro rsi...@gmail.com 2010-05-23 05:00:48 PDT 
---
Fixed in svn r1546.

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


[Issue 4225] New: mangle.c:81: char* mangle(Declaration*): Assertion `fd fd-inferRetType' failed.

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4225

   Summary: mangle.c:81: char* mangle(Declaration*): Assertion `fd
 fd-inferRetType' failed.
   Product: D
   Version: 1.057
  Platform: Other
OS/Version: All
Status: NEW
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: nfx...@gmail.com


--- Comment #0 from nfx...@gmail.com 2010-05-23 07:37:44 PDT ---
$ cat bla.d 
struct Foo {
const x = Foo();

static Foo opCall() {
return Foo.init;
}
}

$ dmd bla.d
::mangle(x)
dmd: mangle.c:81: char* mangle(Declaration*): Assertion `fd 
fd-inferRetType' failed.
Aborted

Tested with dmd 1.061, where I removed the commented printf() in mangle.c line
37.

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


[Issue 4226] New: Can't forward reference identifier defined within a string mixin

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4226

   Summary: Can't forward reference identifier defined within a
string mixin
   Product: D
   Version: 1.057
  Platform: Other
OS/Version: Linux
Status: NEW
  Keywords: rejects-valid, spec
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: nfx...@gmail.com


--- Comment #0 from nfx...@gmail.com 2010-05-23 10:10:54 PDT ---
$ cat f.d
const x = y;
mixin(const y = ~z~;);
const z = 123;

$ dmd f.d
f.d(1): Error: undefined identifier y, did you mean module f?

It works when you make the line with the mixin the first line.
I'm reporting this mainly because I'm curious whether this example is supposed
to work (i.e. it's a dmd bug), or whether the specification disallows it. I
think it is valid.

(Tested with dmd 1.061.)

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


[Issue 4227] New: Overloading rules not complete in D1 docs

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4227

   Summary: Overloading rules not complete in D1 docs
   Product: D
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: st...@despam.it


--- Comment #0 from st...@despam.it 2010-05-23 10:13:11 PDT ---
Nothing to be found in de D1 docs about needing to do selective imports if
you'd like to overload those functions.

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


[Issue 4228] New: std.array.replace contains 2 bugs

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4228

   Summary: std.array.replace contains 2 bugs
   Product: D
   Version: 2.041
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO zan77...@nifty.com 2010-05-23 10:59:40 PDT ---
1. std.array.replace cannot receive null

It should run following code:
--
int[] a = [1, 4, 5];
replace(a, 1u, 2u, null);
assert(a == [1, 5]);
--


2. std.array.replace have strange behavior when array.length shrinks.

It should run following code:
--
int[] a = [1, 4, 5];
replace(a, 1u, 4u, [2]);
assert(a == [1, 2]);
--

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


[Issue 4228] std.array.replace contains 2 bugs

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4228


SHOO zan77...@nifty.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #1 from SHOO zan77...@nifty.com 2010-05-23 11:11:30 PDT ---
Fixed in svn r1547.

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


[Issue 3907] @ attributes not part of lexical grammar

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3907


Ellery Newcomer ellery-newco...@utulsa.edu changed:

   What|Removed |Added

 CC||ellery-newco...@utulsa.edu


--- Comment #1 from Ellery Newcomer ellery-newco...@utulsa.edu 2010-05-23 
13:45:16 PDT ---
(In reply to comment #0)
 The docs mention several attributes starting with @.  The lexical docs don't
 mention @ at all.
 
 Is i.e. @property a special token?  Or is @ a token followed by the text
 property?  Is whitespace permitted between @ and the remainder of the
 attribute?

A peek in the parser shows '@' is a distinct token followed by an identifier

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


[Issue 4210] Random crashes / heisenbugs caused by dmd commit 478: compiler messes up vtables

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4210



--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2010-05-23 
16:46:08 PDT ---
I cannot reproduce the failure, either with the last release (2.046) or the
current version.

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


[Issue 2738] Rebindable should work for interfaces.

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2738


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||rsi...@gmail.com
 AssignedTo|nob...@puremagic.com|rsi...@gmail.com


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


[Issue 4210] Random crashes / heisenbugs caused by dmd commit 478: compiler messes up vtables

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4210



--- Comment #6 from Walter Bright bugzi...@digitalmars.com 2010-05-23 
17:52:06 PDT ---
changeset 498

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


[Issue 4210] Random crashes / heisenbugs caused by dmd commit 478: compiler messes up vtables

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4210


Walter Bright bugzi...@digitalmars.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 4219] hasAliasing does not care about immutable

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4219


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||rsi...@gmail.com
 AssignedTo|nob...@puremagic.com|rsi...@gmail.com


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


[Issue 3465] isIdeographic can be wrong in std.xml

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3465


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||rsi...@gmail.com
 AssignedTo|nob...@puremagic.com|rsi...@gmail.com


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


[Issue 4220] I cannot apply @safe to intrinsic operation(eg: std.math.sqrt)

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4220


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

   What|Removed |Added

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


--- Comment #1 from Walter Bright bugzi...@digitalmars.com 2010-05-23 
21:23:26 PDT ---
changeset 499
(also requires new std.math)

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


[Issue 3088] std.xml.check() fails on xml comments

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3088


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


--- Comment #2 from Shin Fujishiro rsi...@gmail.com 2010-05-23 21:33:21 PDT 
---
Fixed in svn r1549.

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


[Issue 2738] Rebindable should work for interfaces.

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2738


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


--- Comment #1 from Shin Fujishiro rsi...@gmail.com 2010-05-23 21:33:53 PDT 
---
Fixed in svn r1550.

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


[Issue 3465] isIdeographic can be wrong in std.xml

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3465


Shin Fujishiro rsi...@gmail.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


--- Comment #2 from Shin Fujishiro rsi...@gmail.com 2010-05-23 21:36:54 PDT 
---
Fixed in svn r1552.
Thanks for your contribution!

Excuse me: I removed certain part of your code from the actual commit. The
contributed code took care of newer Unicode standards. I like new things, but
as far as supporting XML 1.0, we have to stick to Unicode 2.0.

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


[Issue 4229] New: cast spec

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4229

   Summary: cast spec
   Product: D
   Version: unspecified
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: www.digitalmars.com
AssignedTo: nob...@puremagic.com
ReportedBy: ellery-newco...@utulsa.edu


--- Comment #0 from Ellery Newcomer ellery-newco...@utulsa.edu 2010-05-23 
21:39:25 PDT ---
for D2, the spec is missing description of the following:

auto i = cast(const) 1;
auto i = cast(const shared) 1;
{etc}
auto i = cast() 1;

Love that last one.

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


[Issue 4225] mangle.c:81: char* mangle(Declaration*): Assertion `fd fd-inferRetType' failed.

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4225


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #1 from Don clugd...@yahoo.com.au 2010-05-23 22:10:51 PDT ---
Probably related to bug 2080, since both involve type inference.

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


[Issue 2835] std.socket.TcpSocket.connect doesn't actually connect

2010-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2835



--- Comment #10 from Sohgo Takeuchi so...@sohgo.dyndns.org 2010-05-23 
22:28:02 PDT ---
I have looked at the Changeset 1548.
Thanks for applying this fix to the phobos1.

BTW, Issue 3489 is also a same report of this issue I think.
So you can close the Issue 3489 too.

Thank you.

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