Thread overview
[Issue 1304] New: Exception breakage for associative arrays...
Jul 01, 2007
d-bugmail
Jul 22, 2007
d-bugmail
Sep 09, 2008
d-bugmail
July 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1304

           Summary: Exception breakage for associative arrays...
           Product: DGCC aka GDC
           Version: unspecified
          Platform: All
               URL: http://rafb.net/p/fwGGd787.html
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: schittenden@mac.com


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


-- 

July 22, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1304


dvdfrdmn@users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Comment #1 from dvdfrdmn@users.sf.net  2007-07-22 11:16 -------
I cannot reproduce this.  Can you post the platform, gdc version, gcc version, and command line you are using?


-- 

September 09, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1304


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #2 from smjg@iname.com  2008-09-09 12:06 -------
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.


--