[Issue 4465] New: ICE: assigning power to immutable in nested function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 15 06:41:44 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4465
Summary: ICE: assigning power to immutable in nested function
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at kyllingen.net
--- Comment #0 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-07-15 06:41:42 PDT ---
Test case:
void f()
{
int g()
{
immutable z = 2^^2; // or const, doesn't matter
return z;
}
}
Error:
Internal error: ../ztc/symbol.c 1041
The error message disappears if you
- make g() return something other than z
- make z mutable
- assign z something other than a power expression
--
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