Bug 1374 – passing a ref const(type*) causes segmentation fault

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-07-25T10:20:00Z
Last change time
2015-06-09T01:04:59Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
kamm-removethis

Comments

Comment #0 by kamm-removethis — 2007-07-25T10:20:36Z
The code void foo(ref const(int*) var) {} void main() { int i; foo(&i); } produces a segmentation fault during compilation with dmd 2.003.
Comment #1 by kamm-removethis — 2007-07-26T08:17:59Z
*** This bug has been marked as a duplicate of 1319 ***