[cfe-dev] Address constant

Sanghyeon Seo sanxiyn at gmail.com
Sun Nov 11 08:18:51 PST 2007


Address constants (C99 6.6p9) are not handled. (r43994)

The standard says that the rules for constant expressions in
initializers are more lax than for other constant expressions. Does
this mean isConstantInitializer is needed in addition to
isConstantExpr, like isIntegerConstantExpr?

It seems that current isConstantExpr is used as isConstantInitializer,
so I patched isConstantExpr directly.

A rather incomplete implementation and a test is attached.

-- 
Seo Sanghyeon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: address-constant.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071112/6b6e0a0e/attachment.txt>


More information about the cfe-dev mailing list