Bug 3203 – ICE in ztc\cod4.c(354) when returning a constant structure
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-07-23T01:48:00Z
Last change time
2015-06-09T01:28:05Z
Assigned to
nobody
Creator
kolos80
Comments
Comment #0 by kolos80 — 2009-07-23T01:48:38Z
struct Example
{
byte[3] x;
}
Example e;
// use of *const* or *invariant* causes an error
// when size of Example.x is greater, than 2
const(Example) example() { return e; }
Comment #1 by clugdbug — 2009-08-19T07:27:24Z
Definitely the same as bug #2665. Change your vote!
*** This issue has been marked as a duplicate of issue 2665 ***