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
gcc/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
cp
/
tree.c
diff --git
a/gcc/cp/tree.c
b/gcc/cp/tree.c
index
c2b4af0
..
2a7cd3a
100644
(file)
--- a/
gcc/cp/tree.c
+++ b/
gcc/cp/tree.c
@@
-2493,6
+2493,10
@@
decl_linkage (tree decl)
if (!DECL_NAME (decl))
return lk_none;
+ /* Fields have no linkage. */
+ if (TREE_CODE (decl) == FIELD_DECL)
+ return lk_none;
+
/* Things that are TREE_PUBLIC have external linkage. */
if (TREE_PUBLIC (decl))
return lk_external;