+2005-09-21 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/23993
+ * init.c (integral_constant_value): Use DECL_INTEGRAL_CONSTANT_VAR_P.
+
2005-09-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/23965
tree
integral_constant_value (tree decl)
{
- while ((TREE_CODE (decl) == CONST_DECL
- || (TREE_CODE (decl) == VAR_DECL
- /* And so are variables with a 'const' type -- unless they
- are also 'volatile'. */
- && CP_TYPE_CONST_NON_VOLATILE_P (TREE_TYPE (decl))
- && DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P (decl))))
+ while (TREE_CODE (decl) == CONST_DECL
+ || DECL_INTEGRAL_CONSTANT_VAR_P (decl))
{
tree init;
/* If DECL is a static data member in a template class, we must