[Issue 6030] Segmentation fault with method overloading and alias this

2011-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6030


Trass3r  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #3 from Trass3r  2011-11-03 08:36:39 PDT ---
This has nothing to do with method overloading.
It's a stack overflow caused by aliasthisConvTo.

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

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


[Issue 6030] Segmentation fault with method overloading and alias this

2011-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6030


Kenji Hara  changed:

   What|Removed |Added

 CC||k.hara...@gmail.com


--- Comment #2 from Kenji Hara  2011-08-14 16:12:32 PDT ---
Mutually recursion version.

struct A
{
static B b;
alias b this;
}

struct B
{
static A a;
alias a this;
}

struct C
{
int opSlice(size_t, size_t){ return 0; }
int opSlice(size_t, A){ return 0; }
}

void main()
{
C c;
c[0..A];
}

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


[Issue 6030] Segmentation fault with method overloading and alias this

2011-08-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6030


Trass3r  changed:

   What|Removed |Added

 CC||mrmoc...@gmx.de


--- Comment #1 from Trass3r  2011-08-14 14:57:37 PDT ---
$ gdb --batch -ex 'run test4.d' -ex 'bt 25' dmd
Program received signal SIGSEGV, Segmentation fault.
0x00517f40 in aliasthisConvTo (ad=Cannot access memory at address
0x7f7fefe8) at mtype.c:7193
7193{
#0  0x00517f40 in aliasthisConvTo (ad=Cannot access memory at address
0x7f7fefe8) at mtype.c:7193
#1  0x00518380 in TypeStruct::implicitConvTo (this=0x86f2c0,
to=0x8631d0) at mtype.c:7269
#2  0x00518120 in aliasthisConvTo (ad=0x86f110, from=0x86f2c0,
to=0x8631d0) at mtype.c:7213
#3  0x00518380 in TypeStruct::implicitConvTo (this=0x86f2c0,
to=0x8631d0) at mtype.c:7269
#4  0x00518120 in aliasthisConvTo (ad=0x86f110, from=0x86f2c0,
to=0x8631d0) at mtype.c:7213
#5  0x00518380 in TypeStruct::implicitConvTo (this=0x86f2c0,
to=0x8631d0) at mtype.c:7269
#6  0x00518120 in aliasthisConvTo (ad=0x86f110, from=0x86f2c0,
to=0x8631d0) at mtype.c:7213
...

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