[Nemerle 0001155]: Don't allow try before base ctor call

0 views
Skip to first unread message

feed...@nemerle.org

unread,
Dec 10, 2008, 5:14:49 AM12/10/08
to nemerl...@googlegroups.com

The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=1155>
======================================================================
Reported By: divan
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 1155
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 12-10-2008 11:14 CET
Last Modified: 12-10-2008 11:14 CET
======================================================================
Summary: Don't allow try before base ctor call
Description:
PEVerify rejects following, reporting that "this" should be initialized
before "try"
class A {
this () {
try {} finally {}
base ();
}
}
_ = 1
We should give similar error.
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
12-10-08 11:14 divan New Issue
======================================================================

feed...@nemerle.org

unread,
Dec 10, 2008, 1:28:03 PM12/10/08
to nemerl...@googlegroups.com

The following issue has been RESOLVED.

======================================================================
<http://nemerle.org/bugs/view.php?id=1155>
======================================================================
Reported By: divan
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 1155
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 12-10-2008 11:14 CET
Last Modified: 12-10-2008 19:28 CET

======================================================================
Summary: Don't allow try before base ctor call
Description:
PEVerify rejects following, reporting that "this" should be initialized
before "try"
class A {
this () {
try {} finally {}
base ();
}
}
_ = 1
We should give similar error.
======================================================================

----------------------------------------------------------------------
divan - 12-10-08 19:28
----------------------------------------------------------------------
Fixed on r8166.
This restriction comes only from MS simplifying their verifiers (PEVerify
and JIT), no such requirement in Ecma-335, haven't checked if mono does
the same.

Issue History
Date Modified Username Field Change
======================================================================
12-10-08 11:14 divan New Issue

12-10-08 19:28 divan Note Added: 0002152
12-10-08 19:28 divan Status new => resolved
12-10-08 19:28 divan Resolution open => fixed
12-10-08 19:28 divan Summary Don't allow try before
base ctor call => Don\'t allow try before base ctor call
12-10-08 19:28 divan Description Updated
======================================================================

Reply all
Reply to author
Forward
0 new messages