[Issue 11163] New: [ICE](ctfeexpr.c line 355) with pragma(msg) of a wrong expression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 3 09:54:36 PDT 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 at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list