- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Code similar to:
#define __STDC_WANT_DEC_FP__
static float _Complex fc = 1.5DF;
gets: internal error: assertion failed: type_change_constant: decimal_float to bad type ...
This is icc 11.1 in IA-32 mode on Linux Fedora Core 10 on Pentium 4 in IA-32 mode.
#define __STDC_WANT_DEC_FP__
static float _Complex fc = 1.5DF;
gets: internal error: assertion failed: type_change_constant: decimal_float to bad type ...
This is icc 11.1 in IA-32 mode on Linux Fedora Core 10 on Pentium 4 in IA-32 mode.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean typecasting the Decimal32 to float _Complex. I don't think that would work.
This works though:--
This works though:--
//#define __STDC_WANT_DEC_FP__
static double _Complex fc = 1.5i;
_Decimal32 fc2=1.5DF;
Also, to work with Decimal types, I think .c extension (C-file) will only work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I mean that code as written. That is an assignment from _Decimal32 to
float _Complex. It is supposed to work. This is a *.c file.
float _Complex. It is supposed to work. This is a *.c file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, you sound correct. gcc compilers starting from 4.3.x and onwards have that working. I have escalated this to the compiler team, to get it resolved.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page