ref: e1bd55e7d0fd87b66041c1f90cc4cba370cb25ed
parent: f7dc2e6ddef90c552c22663f8cc664a02c6f3d27
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Sep 25 18:49:28 EDT 2015
Unhide declarations if needed. We don't want to keep a declaration hidden if we saw an exported declaration of it.
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -228,8 +228,10 @@
{
Node *e, *g;
- if (old->decl.ishidden || new->decl.ishidden)
+ if (old->decl.ishidden || new->decl.ishidden) {
+ old->decl.ishidden = old->decl.ishidden && new->decl.ishidden;
return 1;
+ }
if (old->decl.vis == Visexport && new->decl.vis != Visexport) {
e = old;
g = new;