------- Comment #2 from pinskia at gcc dot gnu dot org  2008-05-07 23:18 -------
This patch works for me:
Index: cp/parser.c
======================================================
=============
--- cp/parser.c (revision 2473)
+++ cp/parser.c (working copy)
@@ -4659,6 +4659,10 @@ cp_parser_parenthesized_expression_list 
   if (identifier)
     expression_list = tree_cons (NULL_TREE, identifier, expression_list);

+  /* If we have a constant, just return the value.  */
+  if (non_constant_p && !*non_constant_p)
+    return TREE_VALUE (expression_list);
+
   return expression_list;
 }


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36089

Reply via email to