A missing check for decl lang specific has made    itself apparent.

    gcc/cp/
        * module.cc (has_definition): Check DECL_LANG_SPECIFIC.


(test in the next uber-patch)
--
Nathan Sidwell
diff --git i/gcc/cp/module.cc w/gcc/cp/module.cc
index ed3dbe244a3..19fe66346bd 100644
--- i/gcc/cp/module.cc
+++ w/gcc/cp/module.cc
@@ -11374,7 +11374,8 @@ has_definition (tree decl)
       break;
 
     case VAR_DECL:
-      if (DECL_TEMPLATE_INFO (decl)
+      if (DECL_LANG_SPECIFIC (decl)
+	  && DECL_TEMPLATE_INFO (decl)
 	  && DECL_USE_TEMPLATE (decl) < 2)
 	return DECL_INITIAL (decl);
       else

Reply via email to