OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* decl.c (decls_match): Assert that the arguments are decls.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
cp
/
decl.c
diff --git
a/gcc/cp/decl.c
b/gcc/cp/decl.c
index
7daac5f
..
ef43dbf
100644
(file)
--- a/
gcc/cp/decl.c
+++ b/
gcc/cp/decl.c
@@
-952,6
+952,8
@@
decls_match (tree newdecl, tree olddecl)
interested in their types. */
return 0;
+ gcc_assert (DECL_P (newdecl));
+
if (TREE_CODE (newdecl) == FUNCTION_DECL)
{
tree f1 = TREE_TYPE (newdecl);