Bug 738 – cfloat and creal enums cause compiler to segfault
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2006-12-25T06:26:00Z
Last change time
2015-06-09T05:15:12Z
Keywords
ice-on-invalid-code
Assigned to
dvdfrdmn
Creator
thomas-dloop
Comments
Comment #0 by thomas-dloop — 2006-12-25T06:26:18Z
#
# enum Enum : cfloat {
# A = 1.0fi + 0.0
# }
#
a.d:9: enum dstress.nocompile.enum_32_C.Enum base type must be of integral type, not cfloat
a.d:10: Error: cannot implicitly convert expression (1.0e+0i + 0.0) of type cdouble to int
a.d:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
test cases:
http://dstress.kuehne.cn/nocompile/enum_32_C.dhttp://dstress.kuehne.cn/nocompile/enum_33_C.d