[Issue 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3273

Andrei Alexandrescu  changed:

   What|Removed |Added

Version|2.031   |D2

--


[Issue 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

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


Walter Bright  changed:

   What|Removed |Added

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


--- Comment #11 from Walter Bright  2011-08-05 
10:33:44 PDT ---
https://github.com/D-Programming-Language/dmd/commit/427cf066458dca989bab3a2f4d45330a92df95f6

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


[Issue 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

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


Kenji Hara  changed:

   What|Removed |Added

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


--- Comment #10 from Kenji Hara  2011-07-14 04:26:39 PDT 
---
https://github.com/D-Programming-Language/dmd/pull/139

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


[Issue 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2011-06-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3273


Kenji Hara  changed:

   What|Removed |Added

 CC||la...@virginia.edu


--- Comment #9 from Kenji Hara  2011-06-18 07:28:11 PDT ---
*** Issue 3973 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 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2011-06-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3273


Kenji Hara  changed:

   What|Removed |Added

 CC||jmdavisp...@gmx.com


--- Comment #8 from Kenji Hara  2011-06-18 06:46:17 PDT ---
*** Issue 4714 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 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2011-01-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3273


Don  changed:

   What|Removed |Added

 CC||alex.khm...@gmail.com


--- Comment #7 from Don  2011-01-01 22:26:12 PST ---
*** Issue 5397 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 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3273



--- Comment #6 from Don  2010-09-20 08:34:31 PDT ---
Have just discovered bug 4714, which still fails with this patch. I think this
patch is wrong.

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


[Issue 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2010-09-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3273


Don  changed:

   What|Removed |Added

   Keywords||patch


--- Comment #5 from Don  2010-09-14 11:42:15 PDT ---
PATCH: A normal opAssign, such as in the case below, does not have 'isref' set. 

struct A {
A opAssign(A a){ return this; }
}

Compiler-generated opAssign shouldn't either.


clone.c line 143,  StructDeclaration::buildOpAssign()

Parameter *param = new Parameter(STCnodtor, type, Id::p, NULL);
Parameters *fparams = new Parameters;
fparams->push(param);
Type *ftype = new TypeFunction(fparams, handle, FALSE, LINKd);
-#if STRUCTTHISREF
-((TypeFunction *)ftype)->isref = 1;
-#endif

fop = new FuncDeclaration(0, 0, Id::assign, STCundefined, ftype);

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


[Issue 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2010-07-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3273



--- Comment #4 from Don  2010-07-20 00:21:01 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > (3) invariant + dtor + a non-void function with this struct as parameter, 
> > has
> > never worked.
> > For example this code fails on 2.022 with "cannot goto forward into 
> > different
> > try block level". It's never worked.
> 
> I've moved that case into a new bug, bug 4339, since it's not a regression,
> unlike the test case in this bug.

Now that bug 4339 is fixed, there's a reasonable workaround for this bug:
create an opAssign.

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