aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-12-22 12:39:58 -0800
committerNathan Sidwell <nathan@acm.org>2020-12-22 12:44:51 -0800
commit8be20b9e0d6d53d8538ead6b17c809d0204cc80f (patch)
treecf597880f10dac1cf3c1d7dc960dacc1a4d61c3f /gcc
parent3b2d8145a4c349058d76ce299ea7eea605572004 (diff)
downloadgcc-8be20b9e0d6d53d8538ead6b17c809d0204cc80f.zip
gcc-8be20b9e0d6d53d8538ead6b17c809d0204cc80f.tar.gz
gcc-8be20b9e0d6d53d8538ead6b17c809d0204cc80f.tar.bz2
c++: Module ICE fix
A missing check for decl lang specific has made itself apparent. gcc/cp/ * module.cc (has_definition): Check DECL_LANG_SPECIFIC.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/module.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index ed3dbe2..19fe663 100644
--- a/gcc/cp/module.cc
+++ b/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