shithub: mc

Download patch

ref: b85b0202f856095d12a293961367f2e5cb93e16d
parent: f6f5d7086bc67d1c68d83d6f9bad1ea037e5e6c0
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jun 16 17:26:07 EDT 2015

Hidden decls should never conflict with existing ones.

--- a/parse/stab.c
+++ b/parse/stab.c
@@ -209,6 +209,8 @@
 {
     Node *e, *g;
 
+    if (old->decl.ishidden || new->decl.ishidden)
+        return 1;
     if (old->decl.vis == Visexport && new->decl.vis != Visexport) {
         e = old;
         g = new;