Thread overview
[Issue 6720] New: Internal error: ../ztc/cod1.c 1909
Sep 23, 2011
Lennart Blanco
[Issue 6720] ICE(cod1.c) casting return of void function to bool
Sep 24, 2011
Don
Jan 30, 2012
Don
Jan 31, 2012
Walter Bright
Oct 06, 2013
Walter Bright
Oct 07, 2013
Walter Bright
September 23, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6720

           Summary: Internal error: ../ztc/cod1.c 1909
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: cokebuttle@gmail.com


--- Comment #0 from Lennart Blanco <cokebuttle@gmail.com> 2011-09-23 12:20:50 PDT ---
When compiling following code:


void main() {
  bool x = cast(bool)main();
}

The compiler aborts with following error message:

Internal error: ../ztc/cod1.c 1909

This is an error message from dmd version 2.055.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 24, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6720


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
                 CC|                            |clugdbug@yahoo.com.au
            Version|D2                          |D1 & D2
            Summary|Internal error:             |ICE(cod1.c) casting return
                   |../ztc/cod1.c 1909          |of void function to bool


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-09-23 23:07:30 PDT ---
Not a regression. Applies even to prehistoric versions of D (same behaviour on
D0.050).
Not specific to main().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 30, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6720


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|nobody@puremagic.com        |clugdbug@yahoo.com.au


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-01-30 10:54:29 PST ---
I've made a fix for this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6720



--- Comment #3 from github-bugzilla@puremagic.com 2012-01-30 23:22:15 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ac69d4b9893725d0eb7f40002f73d0b280214b02 Merge pull request #665 from donc/ice5796

ICE bugs 5796 and 6720

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6720


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2012-01-31 01:10:11 PST ---
The fix for this was reverted, as it caused failures in test funclit.d.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6720



--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2013-10-05 18:51:47 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2632

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6720



--- Comment #6 from github-bugzilla@puremagic.com 2013-10-06 20:19:10 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/fbb041fcb5be7c13160128c55d5918d2f4cd8c2e fix Issue 6720 - ICE(cod1.c) casting return of void function to bool

https://github.com/D-Programming-Language/dmd/commit/7508301342358ef7690fe8b142d5ea42ba46b138 Merge pull request #2632 from WalterBright/fix6720

fix Issue 6720 - ICE(cod1.c) casting return of void function to bool

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6720



--- Comment #7 from github-bugzilla@puremagic.com 2013-10-06 20:32:34 PDT ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9c8c9bbd3a182af3e60debdd24d9d1835d3939be fix fix Issue 6720 - ICE(cod1.c) casting return of void function to bool

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6720



--- Comment #8 from github-bugzilla@puremagic.com 2013-10-06 20:35:44 PDT ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f65d8c391031c94caa807ec0b4d00c54f8522373 fix fix Issue 6720 - ICE(cod1.c) casting return of void function to bool

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6720


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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