[cfe-commits] r42238 - /cfe/trunk/AST/Expr.cpp
sabre at nondot.org
Sun Sep 23 21:36:41 PDT 2007
>> t.c:5:13: error: case label does not reduce to an integer constant
>> case (int)1.0e10000:
>> GCC accepts this, emitting the pedwarn:
>> t.c:5: warning: floating constant exceeds range of 'double'
> You could just set the integer value to the largest value. Or is
> something else the problem here?
Nope, that's all. I need a slight enhancement to the APFloat API for
that to happen, I've emailed you about it separately. :)
> FWIW I tend to think such code should always be a hard error; I
> see little value in accepting such things :)
As a client of the clang libraries, you could certainly choose to
enforce that on your users :)
More information about the cfe-commits