[Issue 6599] ICE(constfold.c) On use of invalid expression as a compile-time initializer

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6599


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

   What|Removed |Added

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


--- Comment #2 from Don clugd...@yahoo.com.au 2011-09-07 00:04:01 PDT ---
(In reply to comment #1)
 That's a strange place to get the error.  I get an AV at constfold.c:1396.
 
 CatExp::optimize calls :optimize on fileProtocol (which does nothing) then
 passes it along to Cat, which crashes trying to access fileProtocol's type.
 
 It seems to happen for all operators:
[snip] 
 It is probably invalid to assume e-type has been set inside Cat and other
 constfold functions.

No, it's valid. Those functions should only be called after the semantic pass
was completed successfully on the expression. This is yet another gagging
system bug.

Repository is forward referenced from Orbit. Semantic is run on Repository with
errors gagged. This semantic pass fails, but leaves Repository's members in an
invalid state.
If you move Orbit after Repository, you see the correct error messages.

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


[Issue 6448] writef(%05d, BigInt) problem

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6448


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

   What|Removed |Added

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


--- Comment #2 from Don clugd...@yahoo.com.au 2011-09-07 00:11:38 PDT ---
https://github.com/D-Programming-Language/phobos/commit/568b04658df684118d769f10cb1f4a9413e8c9e5

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


[Issue 6599] ICE(constfold.c) On use of invalid expression as a compile-time initializer

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6599



--- Comment #3 from yebblies yebbl...@gmail.com 2011-09-07 17:32:53 EST ---
(In reply to comment #2)
 (In reply to comment #1)
  That's a strange place to get the error.  I get an AV at constfold.c:1396.
  
  CatExp::optimize calls :optimize on fileProtocol (which does nothing) then
  passes it along to Cat, which crashes trying to access fileProtocol's type.
  
  It seems to happen for all operators:
 [snip] 
  It is probably invalid to assume e-type has been set inside Cat and other
  constfold functions.
 
 No, it's valid. Those functions should only be called after the semantic pass
 was completed successfully on the expression. This is yet another gagging
 system bug.
 
 Repository is forward referenced from Orbit. Semantic is run on Repository 
 with
 errors gagged. This semantic pass fails, but leaves Repository's members in an
 invalid state.
 If you move Orbit after Repository, you see the correct error messages.

Ok. That would make this another case of bug 4269?

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


[Issue 6616] New: foreach argument type inference

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6616

   Summary: foreach argument type inference
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-09-07 00:57:03 PDT ---
In this program the Foo struct is large, so I use ref to avoid its copies. I
also use const because I want to make sure (and document) the two loops will
not change the matrix contents:


struct Foo { int[1000] a; }
void bar(ref Foo x) {}
void main() {
auto m = new Foo[][](3, 3);
foreach (const(Foo[]) row; m)
foreach (ref const(Foo) x; row)
bar(x);
}


But I'd like type inference there, and be able to write something like:

struct Foo { int[1000] a; }
void bar(ref Foo x) {}
void main() {
auto m = new Foo[][](3, 3);
foreach (const row; m)
foreach (ref const x; row)
bar(x);
}


With DMD 2.055beta3 this gives:

test.d(5): no identifier for declarator const(row)
test.d(6): no identifier for declarator const(x)

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


[Issue 6616] foreach argument type inference

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6616


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #1 from yebblies yebbl...@gmail.com 2011-09-07 18:14:50 EST ---
You're kidding me right?  This is the THIRD time you've reported this exact
bug.

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

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


[Issue 4090] No foreach type inference with const, ref etc modifiers

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4090



--- Comment #1 from yebblies yebbl...@gmail.com 2011-09-07 18:14:50 EST ---
*** Issue 6616 has been marked as a duplicate of this issue. ***

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


[Issue 4090] No foreach type inference with const, ref etc modifiers

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4090



--- Comment #2 from yebblies yebbl...@gmail.com 2011-09-07 18:15:11 EST ---
*** Issue 5255 has been marked as a duplicate of this issue. ***

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


[Issue 5255] No foreach type inference with const

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5255


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #1 from yebblies yebbl...@gmail.com 2011-09-07 18:15:11 EST ---
*** This issue has been marked as a duplicate of issue 4090 ***

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


[Issue 3126] Char concatenation doesn't work for wstring

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3126


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #3 from yebblies yebbl...@gmail.com 2011-09-07 18:49:55 EST ---
*** This issue has been marked as a duplicate of issue 2169 ***

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


[Issue 2169] Can't concat non-char[] string literal and char literal (D1 only)

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2169


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||dfj1es...@sneakemail.com


--- Comment #1 from yebblies yebbl...@gmail.com 2011-09-07 18:49:55 EST ---
*** Issue 3126 has been marked as a duplicate of this issue. ***

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


[Issue 6616] foreach argument type inference

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6616



--- Comment #2 from bearophile_h...@eml.cc 2011-09-07 02:07:39 PDT ---
I am sorry.

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


[Issue 6616] foreach argument type inference

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6616



--- Comment #3 from yebblies yebbl...@gmail.com 2011-09-07 19:15:27 EST ---
(In reply to comment #2)
 I am sorry.

Just don't forget to do a quick search first next time!
I know you have over 200 enhancement requests open, but it might be worth going
through and checking they all still make sense.

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


[Issue 6618] New: TypeInfo_Struct.equals should prefer xopEquals than pointer equality

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6618

   Summary: TypeInfo_Struct.equals should prefer xopEquals than
pointer equality
   Product: D
   Version: D2
  Platform: Other
OS/Version: Windows
Status: NEW
  Keywords: rejects-valid
  Severity: normal
  Priority: P2
 Component: druntime
AssignedTo: nob...@puremagic.com
ReportedBy: k.hara...@gmail.com


--- Comment #0 from Kenji Hara k.hara...@gmail.com 2011-09-07 03:10:17 PDT ---
Following code should pass the assertion.

void main()
{
struct S
{
const bool opEquals(ref const S rhs)
{
return false;
}
}
S s;
assert(!typeid(S).equals(s, s));
}

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


[Issue 6618] TypeInfo_Struct.equals should prefer xopEquals than pointer equality

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6618


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

   What|Removed |Added

   Keywords||patch


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2011-09-07 03:18:32 PDT ---
https://github.com/D-Programming-Language/druntime/pull/68

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


[Issue 6619] New: Forward a single field to a subfield, like alias this

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6619

   Summary: Forward a single field to a subfield, like alias
this
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: thecybersha...@gmail.com


--- Comment #0 from Vladimir Panteleev thecybersha...@gmail.com 2011-09-07 
07:18:12 PDT ---
It would be nice if this worked:

struct S1 { int f; }
struct S2
{
S1 s1;
alias s1.f g;
}

The error message, which occurs only when trying to access g, is also
somewhat confusing:

Error: struct test.S2 'f' is not a member
Error: struct test.S2 member f is not accessible
Error: this for f needs to be type S1 not type S2

A more general solution would be to allow aliasing expressions, but it sounds
like a large language change which would require some discussion first.

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


[Issue 6599] ICE(constfold.c) On use of invalid expression as a compile-time initializer

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6599



--- Comment #4 from Jacob Carlborg d...@me.com 2011-09-07 09:26:43 PDT ---
With DMD 1.069 I get the same error even when I place Repository before Orbit.

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


[Issue 5713] Broken final switch on ints

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713



--- Comment #5 from bearophile_h...@eml.cc 2011-09-07 10:15:54 PDT ---
An example from Timon Gehr, this gives no compilation errors, and prints
nothing:


import std.stdio;
enum Mode { nothing, read, write }
void main() {
final switch (Mode.read | Mode.write) {
case Mode.nothing: writeln(0); break;
case Mode.read:writeln(1); break;
case Mode.write:   writeln(2); break;
}
}

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


[Issue 6548] [e2ir.c] Problem with ^^ vector op

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6548


Iain Buclaw ibuc...@ubuntu.com changed:

   What|Removed |Added

   Keywords||patch


--- Comment #4 from Iain Buclaw ibuc...@ubuntu.com 2011-09-07 13:17:21 PDT ---
https://github.com/D-Programming-Language/dmd/pull/344/files


Finalised feature and added test cases.

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


[Issue 6335] Issues with d-p-l.org statement.html, std_getopt.html

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6335


jens.k.muel...@gmx.de changed:

   What|Removed |Added

 CC||jens.k.muel...@gmx.de


--- Comment #2 from jens.k.muel...@gmx.de 2011-09-07 13:48:00 PDT ---
statement.html looks fine to me and Language Reference expands. There is only
the OL on http://www.d-programming-language.org/phobos/std_getopt.html left
which I cannot reproduce locally. Here they are numbered.
BTW When is www.d-programming-language.org regenerated? I suppose this is done
if a new version is released to reflect the changes.

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


[Issue 6395] ICE(glue.c) Multiple-at-a-time bug breaking e.g. DustMite

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6395


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

   What|Removed |Added

 CC||clugd...@yahoo.com.au
Summary|Multiple-at-a-time bug  |ICE(glue.c)
   |breaking e.g. DustMite  |Multiple-at-a-time bug
   ||breaking e.g. DustMite


--- Comment #3 from Don clugd...@yahoo.com.au 2011-09-07 15:22:07 PDT ---
Looks like bug 2962 to me.

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


[Issue 5754] ICE(glue.c): using nested delegate literal as template alias parameter

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5754


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

   What|Removed |Added

Summary|ICE('glue.c'): using nested |ICE(glue.c): using nested
   |delegate literal as |delegate literal as
   |template alias parameter|template alias parameter


--- Comment #3 from Don clugd...@yahoo.com.au 2011-09-07 15:24:09 PDT ---
See also bug 2962.

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


[Issue 6395] ICE(glue.c) Multiple-at-a-time bug breaking e.g. DustMite

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6395



--- Comment #4 from klickverbot c...@klickverbot.at 2011-09-07 15:33:10 PDT 
---
@Don: I don't have time to dig into the issue right now, feel free to close
this bug as a duplicate if you think it is one.

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


[Issue 6605] Add switch to enable setting library search paths via command line

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6605



--- Comment #6 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-09-07 
15:50:32 PDT ---
Well crap, this syntax doesn't work if you use the -lib switch with DMD. Is
there any workaround for this?

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


[Issue 5749] argument evaluation order of chained function from right

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5749


d...@dawgfoto.de changed:

   What|Removed |Added

 CC||d...@dawgfoto.de


--- Comment #5 from d...@dawgfoto.de 2011-09-07 15:53:41 PDT ---
The result also changes with respect to enabling -inline or not.

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


[Issue 6620] New: argument evaluation order inversed for extern(C)

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6620

   Summary: argument evaluation order inversed for extern(C)
   Product: D
   Version: D2
  Platform: Other
OS/Version: FreeBSD
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2011-09-07 16:05:10 PDT ---
version (none)
{
extern(C) int bar(int a, int b) { return b - a; }
}
else
{
int bar(int a, int b) { return b - a; }
}

void main()
{
int i;
assert(bar(++i, ++i) == 1);
}

---

I know argument evaluation order isn't really guaranteed to be left to right.
But having a reverse order for extern(C) calls is simply surprising.

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


[Issue 6620] argument evaluation order inversed for extern(C)

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6620


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||INVALID


--- Comment #1 from yebblies yebbl...@gmail.com 2011-09-08 14:30:51 EST ---
(In reply to comment #0)
 I know argument evaluation order isn't really guaranteed to be left to right.

It isn't guaranteed _at all_, it's undefined.  I think there's already an
enhancement open about defining the order of evaluation, but until that's
accepted this is perfectly valid behavior by the compiler.

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


[Issue 4500] scoped moves class after calling the constructor

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4500


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

   What|Removed |Added

 Status|ASSIGNED|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 6040] std.cpuid and core.cpuid return different values for some methods

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6040


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

   What|Removed |Added

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


--- Comment #2 from Walter Bright bugzi...@digitalmars.com 2011-09-07 
22:30:08 PDT ---
Fixed 2.055

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


[Issue 5825] write is calling a deprecated function

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5825


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

   Keywords||patch
 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
   Platform|Other   |All
 Resolution||FIXED
 OS/Version|Windows |All


--- Comment #2 from yebblies yebbl...@gmail.com 2011-09-08 15:42:54 EST ---
https://github.com/D-Programming-Language/phobos/pull/225

https://github.com/D-Programming-Language/phobos/commit/711f7e2e84d7cbb7a643db70f041868f555d5300

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