www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10084] New: ICE: toir.c 183

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10084

           Summary: ICE: toir.c 183
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: oivind.loe gmail.com


--- Comment #0 from Řivind <oivind.loe gmail.com> 2013-05-14 12:36:30 PDT ---
The following code gives ICE: "Internal error: toir.c 183".

----------------------------------
void staticIterStructMembers(Type, alias Func)() {
  void IterStructMemberCall(Member )() {
    Func!Member;
  }
  IterStructMemberCall!Type;
}

template annotStruct() {
  void save() {
    void saveImpl(Member )() {
    }
    staticIterStructMembers!(typeof(this), saveImpl);
  }
}

struct MsgBossCreateProc {
  mixin annotStruct;
}
------------------------------------------------

This fails on master, e.g. what is about to be release 2.063:


commit 61bcb35cc9a0dd6377b5c17e07a1ea6cb7fb2f12
Merge: 4ed3396 1de9770
Author: Daniel Murphy <yebblies gmail.com>
Date:   Tue May 14 01:07:59 2013 -0700

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10084


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-05-14 20:53:05 PDT ---
What version did not cause ICE? I tested the code witn 2.057 to 2,062, and all
had caused ICE.

If there was no version which was correctly working for the code, this issue
should not be marked as a regression.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10084


Řivind <oivind.loe gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|regression                  |major


--- Comment #2 from Řivind <oivind.loe gmail.com> 2013-05-14 23:30:45 PDT ---
My bad. Went a bit quickly yesterday. Changed it from regression to 'major'.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10084


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE: toir.c 183             |ICE(toir.c) alias template
                   |                            |parameter


--- Comment #3 from Don <clugdbug yahoo.com.au> 2013-06-14 04:56:54 PDT ---
Probably a duplicate of one of the other ICE(toir.c) bugs. bug4504, bug5902,
bug6426, bug8436 etc.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 14 2013