Thread overview
[Issue 11163] New: [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong expression
Oct 04, 2013
Kenji Hara
Oct 08, 2013
Walter Bright
Oct 08, 2013
Iain Buclaw
October 03, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11163

           Summary: [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong
                    expression
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2013-10-03 09:54:35 PDT ---
int[] foo() {
    return [1];
}
void main() {
    immutable a = foo();
    pragma(msg, a);
}



DMD 2.064 alpha gives:

test.d(5): Error: cannot implicitly convert expression (foo()) of type int[] to
immutable(int[])
Assertion failure: '0' on line 355 in file 'ctfeexpr.c'

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-10-03 18:46:33 PDT ---
This is a regression in 2.064 git-head.

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


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2013-10-08 02:34:31 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2641

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



--- Comment #3 from github-bugzilla@puremagic.com 2013-10-08 04:35:48 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/71e15b6da92e34f186aede4b89a4c3901db74691
fix Issue 11163 - [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong
expression

https://github.com/D-Programming-Language/dmd/commit/c75c0a8156a0c5c91fa485d46c28a0a6f2d0e5ee Merge pull request #2641 from WalterBright/fix11163

fix Issue 11163 - [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong...

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


Iain Buclaw <ibuclaw@ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ibuclaw@ubuntu.com
         Resolution|                            |FIXED


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