===================================================================
@@ -5,7 +5,7 @@ template < bool > void
foo ()
{
const bool b =; // { dg-error "" }
- foo < b > (); // { dg-error "constant expression" }
+ foo < b > ();
};
// { dg-error "no match" "" { target *-*-* } 8 }
===================================================================
@@ -7923,9 +7923,7 @@ potential_constant_expression_1 (tree t, bool want
if (cxx_dialect < cxx0x)
return true;
- if (t == error_mark_node)
- return false;
- if (t == NULL_TREE)
+ if (t == NULL_TREE || t == error_mark_node)
return true;
if (TREE_THIS_VOLATILE (t))
{