mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-01 08:24:10 +08:00
decl.c (grokdeclarator): Remove dead code.
2013-03-01 Paolo Carlini <paolo.carlini@oracle.com> * decl.c (grokdeclarator): Remove dead code. From-SVN: r196369
This commit is contained in:
parent
fa93421987
commit
48a30e2846
@ -1,3 +1,7 @@
|
||||
2013-03-01 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* decl.c (grokdeclarator): Remove dead code.
|
||||
|
||||
2013-02-28 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/56481
|
||||
|
@ -8599,7 +8599,6 @@ grokdeclarator (const cp_declarator *declarator,
|
||||
int explicit_int = 0;
|
||||
int explicit_char = 0;
|
||||
int defaulted_int = 0;
|
||||
tree dependent_name = NULL_TREE;
|
||||
|
||||
tree typedef_decl = NULL_TREE;
|
||||
const char *name = NULL;
|
||||
@ -9196,12 +9195,6 @@ grokdeclarator (const cp_declarator *declarator,
|
||||
}
|
||||
friendp = decl_spec_seq_has_spec_p (declspecs, ds_friend);
|
||||
|
||||
if (dependent_name && !friendp)
|
||||
{
|
||||
error ("%<%T::%D%> is not a valid declarator", ctype, dependent_name);
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
/* Issue errors about use of storage classes for parameters. */
|
||||
if (decl_context == PARM)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user