www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11163] New: [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong expression

reply d-bugmail puremagic.com writes:
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: -------
Oct 03 2013
next sibling parent d-bugmail puremagic.com writes:
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: -------
Oct 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Oct 08 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Oct 08 2013
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Oct 08 2013