[cfe-dev] a kind of const expression not surpported
Jiandong Lu
lujiandong1001 at yahoo.com.cn
Thu Aug 27 19:22:05 PDT 2009
hi,everyone.
the coes bellow not compiled by clang,but compiled by gcc.
#include <stdio.h>
int main()
{
double d = 0x1.0p514;
printf("d = %f\n");
return 0;
}
clang's output is :
[clang at FreeBSD_209 ~/test]> clang -o t ./frexp.c
Assertion failed: (dot == 0), function convertFromHexadecimalString, file APFloat.cpp, line 2156.
Stack dump:
0. Program arguments: /usr/home/clang/llvm/Debug/bin/clang-cc -triple i386-unknown-freebsd7.2 -S -disable-free -main-file-name frexp.c --relocation-model static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1 -fdiagnostics-show-option -o /tmp/cc-ha3RrR.s -x c ./frexp.c
1. ./frexp.c:5:13: current parser token '0x1.0p514'
2. ./frexp.c:4:1: parsing function body 'main'
3. ./frexp.c:4:1: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see invocation)
0x1.0p514 expresion has not been surpported yest.
The clang I use is compiled by I with the latest codes yestoday.
This problem is found while I use clang to build clangbsd project(http://wiki.freebsd.org/BuildingFreeBSDWithClang).
zhuiyue
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090827/ac093039/attachment.html>
More information about the cfe-dev
mailing list