[Issue 3273] struct invariant + dtor fails to compile (no line number)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 11 04:43:10 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3273
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-06-11 04:43:07 PDT ---
The error message is generated while running the semantic pass on the
synthesised opAssign().
Here's an extraordinary variation:
struct A {
~this() { }
invariant() { }
A opAssign(A a) { return this; }
}
--
Error: cannot goto forward into different try block level
This has to be the most bizarre and unhelpful error message I've ever seen in
D.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list