[Issue 9268] New: [ice-on-invalid] void assignment in fail44.d no longer caught in frontend

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 3 20:11:06 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9268

           Summary: [ice-on-invalid] void assignment in fail44.d no longer
                    caught in frontend
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice, ice-on-invalid-code
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at klickverbot.at


--- Comment #0 from David Nadlinger <code at klickverbot.at> 2013-01-03 20:11:04 PST ---
fail_compilation/fail44.d (as reproduced below) now fails with a backend ICE
instead of a nice "expression … is void and has no value" error:

---
void Foo()
{
  void[] bar;
  void[] foo;

  bar.length = 50;
  foo.length = 50;

  for(int i=0; i<50; i++)
  {
    foo[i] = bar[i];
  }
}
---

DMD 2.061:
---
Internal error: backend/cod4.c 359
---

Maybe d_do_test should generally check the error messages for "Internal error"
instead of just testing the exit value?

-- 
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