Bug 1304 – Exception breakage for associative arrays...
Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-07-01T17:23:00Z
Last change time
2015-06-09T05:15:15Z
Assigned to
dvdfrdmn
Creator
sean
Comments
Comment #0 by sean — 2007-07-01T17:23:00Z
Simple test case for an exception causes gdc to err out.
### BEGIN code
import std.stdint;
class Test1 {
public:
void add(uint32_t i)
body {
try {
uint val = my_hash[i];
} catch (Exception e) {
my_hash[i] = p++;
} finally {
// Do nothing
}
}
private:
uint32_t[uint32_t] my_hash;
uint32_t p = 0;
}
void main() {
Test1 t = new Test1;
t.add(1);
}
### END snippet
Comment #1 by dvdfrdmn — 2007-07-22T11:16:27Z
I cannot reproduce this. Can you post the platform, gdc version, gcc version, and command line you are using?
Comment #2 by smjg — 2008-09-09T12:06:52Z
Marking WFM per no response. If it still fails with current versions then please:
- reopen
- provide the information requested in comment 1
- post the full compiler output/other symptoms
- assign whatever keywords are appropriate to this issue.