/cp
2011-12-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51414
* semantics.c (finish_underlying_type): Use %qT, not %qE for the
error message.
/testsuite
2011-12-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51414
* g++.dg/ext/underlying_type11.C: New.
From-SVN: r182017
+2011-12-05 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/51414
+ * semantics.c (finish_underlying_type): Use %qT, not %qE for the
+ error message.
+
2011-12-05 Jason Merrill <jason@redhat.com>
* init.c (expand_default_init): Unshare args in ctor delegation.
if (TREE_CODE (type) != ENUMERAL_TYPE)
{
- error ("%qE is not an enumeration type", type);
+ error ("%qT is not an enumeration type", type);
return error_mark_node;
}
+2011-12-05 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/51414
+ * g++.dg/ext/underlying_type11.C: New.
+
2011-12-05 Uros Bizjak <ubizjak@gmail.com>
PR testsuite/51128
--- /dev/null
+// PR c++/51414
+
+__underlying_type(int[1]) i; // { dg-error "int \\\[1\\\]|invalid" }