decl.c (make_typename_type): Only error out if tf_error is set in complain.
2012-09-14 Paolo Carlini <paolo.carlini@oracle.com> * decl.c (make_typename_type): Only error out if tf_error is set in complain. From-SVN: r191303
This commit is contained in:
parent
5ef0b50ddc
commit
937f6ef145
@ -1,3 +1,8 @@
|
||||
2012-09-14 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* decl.c (make_typename_type): Only error out if tf_error is set
|
||||
in complain.
|
||||
|
||||
2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||
|
||||
|
@ -3235,13 +3235,15 @@ make_typename_type (tree context, tree name, enum tag_types tag_type,
|
||||
name = TREE_OPERAND (fullname, 0) = DECL_NAME (name);
|
||||
else if (TREE_CODE (name) == OVERLOAD)
|
||||
{
|
||||
error ("%qD is not a type", name);
|
||||
if (complain & tf_error)
|
||||
error ("%qD is not a type", name);
|
||||
return error_mark_node;
|
||||
}
|
||||
}
|
||||
if (TREE_CODE (name) == TEMPLATE_DECL)
|
||||
{
|
||||
error ("%qD used without template parameters", name);
|
||||
if (complain & tf_error)
|
||||
error ("%qD used without template parameters", name);
|
||||
return error_mark_node;
|
||||
}
|
||||
gcc_assert (TREE_CODE (name) == IDENTIFIER_NODE);
|
||||
|
Loading…
Reference in New Issue
Block a user