re PR c++/51414 (Broken diagnostic with invalid use of __underlying_type)
/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
This commit is contained in:
parent
6778ae9d4b
commit
ca2507dca9
4 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -3401,7 +3401,7 @@ finish_underlying_type (tree type)
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
3
gcc/testsuite/g++.dg/ext/underlying_type11.C
Normal file
3
gcc/testsuite/g++.dg/ext/underlying_type11.C
Normal file
|
@ -0,0 +1,3 @@
|
|||
// PR c++/51414
|
||||
|
||||
__underlying_type(int[1]) i; // { dg-error "int \\\[1\\\]|invalid" }
|
Loading…
Add table
Reference in a new issue