[Issue 9209] New: [ICE](symbol.c line 1025) with const struct heap allocation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 26 03:13:27 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9209
Summary: [ICE](symbol.c line 1025) with const struct heap
allocation
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
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 2012-12-26 03:13:25 PST ---
struct Foo(T) { T x; }
void bar(T)(in Foo!T*) {}
void main () {
const f = new Foo!int(1);
bar(f);
}
DMD 2.061alpha gives:
Internal error: backend\symbol.c 1025
This is not exactly a regression because this syntax was not allowed in DMD
2.060, but it's a bug not present in DMD 2.060.
--
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