[Issue 4203] New: Const field of struct that contains a whole struct

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

   Summary: Const field of struct that contains a whole struct
   Product: D
   Version: future
  Platform: x86
OS/Version: Windows
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-05-18 04:08:11 PDT ---
I don't understand what's going on here, but even if this is not a bug (and to
me it looks like a problem) it's too much tricky for D newbies.

This runs with dmd v2.046:


// case 1
struct Foo {
const Foo f = Foo();
}
static assert(Foo.sizeof == 1);
void main() {}



While this is not OK:


// case 2
struct Foo {
const Foo f;
}
static assert(Foo.sizeof == 1);
void main() {}


dmd v2.046 prints:
test.d(2): Error: struct test.Foo cannot have field f with same struct type
test.d(2): Error: struct test.Foo cannot have field f with same struct type

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


[Issue 4202] Changset 1517 doesn't compile.

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


Masahiro Nakagawa repeate...@gmail.com changed:

   What|Removed |Added

 CC||repeate...@gmail.com


--- Comment #1 from Masahiro Nakagawa repeate...@gmail.com 2010-05-18 
04:48:57 PDT ---
changeset 1522

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


[Issue 2610] const/invariant(immutable) class don't have constructor

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


Haruki Shigemori rayerd@gmail.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 3145] std.perf documentation is generated, but there's no link to it from the side index

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


st...@despam.it changed:

   What|Removed |Added

 CC||st...@despam.it


--- Comment #1 from st...@despam.it 2010-05-18 08:31:04 PDT ---
And, http://www.digitalmars.com/d/1.0/phobos/std_perf.html does not exist.

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


[Issue 2610] const/invariant(immutable) class don't have constructor

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


nfx...@gmail.com changed:

   What|Removed |Added

 CC||nfx...@gmail.com


--- Comment #1 from nfx...@gmail.com 2010-05-18 11:22:08 PDT ---
You closed this bug as fixed, but what was the resolution?

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


[Issue 2610] const/invariant(immutable) class don't have constructor

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


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #2 from bearophile_h...@eml.cc 2010-05-18 11:53:01 PDT ---
This code compiles and runs fine on dmd v.2.046.

immutable class A {
  string s;
  this() {
s = hoge;
  }
}
void main() {
  A a = new A;
}

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


[Issue 461] Constant not understood to be constant when circular module dependency exists.

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


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

   What|Removed |Added

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


--- Comment #4 from Don clugd...@yahoo.com.au 2010-05-18 12:14:42 PDT ---
Fixed DMD1.061 and DMD2.046.

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


[Issue 945] template forward reference with named nested struct only

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


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

   What|Removed |Added

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


--- Comment #8 from Don clugd...@yahoo.com.au 2010-05-18 12:15:17 PDT ---
Fixed DMD1.061 and DMD2.046.

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


[Issue 1055] union forward reference overlapping initialization error

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


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

   What|Removed |Added

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


--- Comment #7 from Don clugd...@yahoo.com.au 2010-05-18 12:16:02 PDT ---
Fixed DMD1.061 and DMD2.046.

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


[Issue 3945] AssertExpression message should implicitly convert to const char[]

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


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 2010-05-18 12:17:06 PDT ---
FixedDMD2.046.

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


[Issue 4042] Unable to instantiate a struct template.

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


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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #9 from Don clugd...@yahoo.com.au 2010-05-18 12:18:38 PDT ---
FixedDMD2.046.

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


[Issue 4100] Break and continue to label should mention foreach

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


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

   What|Removed |Added

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


--- Comment #4 from Don clugd...@yahoo.com.au 2010-05-18 12:18:59 PDT ---
Fixed DMD1.061 and DMD2.046.

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


[Issue 4016] const initializer cannot forward reference other const initializer

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


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 2010-05-18 12:17:54 PDT ---
Fixed DMD2.046.

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


[Issue 4146] Unavailable: core.sys.posix.sys.wait.waitid()

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


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 2010-05-18 12:19:52 PDT ---
Fixed DMD2.046.

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


[Issue 4116] object.di does not match object_.d

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


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

   What|Removed |Added

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


--- Comment #1 from Don clugd...@yahoo.com.au 2010-05-18 12:19:21 PDT ---
Fixed DMD1.061 and DMD2.046.

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


[Issue 4204] New: Wrong directory delimiters in all.sh

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

   Summary: Wrong directory delimiters in all.sh
   Product: D
   Version: 1.057
  Platform: Other
OS/Version: Mac OS X
Status: NEW
  Severity: minor
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: simen.kja...@gmail.com


--- Comment #0 from Simen Kjaeraas simen.kja...@gmail.com 2010-05-18 14:14:24 
PDT ---
Line 5 of DMD/samples/d/all.sh:

DMD=\dmd\bin\dmd

Should be:

DMD=/dmd/bin/dmd

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


[Issue 4205] New: Strange error message when trying to call unknown method on string

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

   Summary: Strange error message when trying to call unknown
method on string
   Product: D
   Version: unspecified
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: luk.wrzo...@gmail.com


--- Comment #0 from Lukasz Wrzosek luk.wrzo...@gmail.com 2010-05-18 15:52:27 
PDT ---
//= 
module fooo;

class C
{
}

void main(string[] args)
{
int i = 10;
string str = 123;
C c = new C;

i.toHash();  //tmp.d(13): Error: no property 'toHash' for type 'int'
i.someFunc();//tmp.d(14): Error: no property 'someFunc' for type 'int'

c.toHash();
c.someFunc();//tmp.d(17): Error: no property 'someFunc' for type
'fooo.C'

str.toHash();//tmp.d(19): Error: undefined identifier module
fooo.toHash
str.someFunc();  //tmp.d(20): Error: undefined identifier module
fooo.someFunc
}

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


[Issue 3332] Mixin a constructor with a construct already present fails

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


st...@despam.it changed:

   What|Removed |Added

 CC||st...@despam.it


--- Comment #1 from st...@despam.it 2010-05-18 15:53:06 PDT ---
This one bit me as well today :(
Windows 
D1.061
Hack: renamed all constructors within the mixin to ctor.

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


[Issue 2610] const/invariant(immutable) class don't have constructor

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



--- Comment #3 from Haruki Shigemori rayerd@gmail.com 2010-05-18 19:59:09 
PDT ---
(In reply to comment #1)
 You closed this bug as fixed, but what was the resolution?

Sorry. I should have written a reason.

(In reply to comment #2)
 This code compiles and runs fine on dmd v.2.046.
 
 immutable class A {
   string s;
   this() {
 s = hoge;
   }
 }
 void main() {
   A a = new A;
 }

Thanks!

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