projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2d814
)
c++: Module ICE fix
author
Nathan Sidwell
<nathan@acm.org>
Tue, 22 Dec 2020 20:39:58 +0000
(12:39 -0800)
committer
Nathan Sidwell
<nathan@acm.org>
Tue, 22 Dec 2020 20:44:51 +0000
(12:44 -0800)
A missing check for decl lang specific has made itself apparent.
gcc/cp/
* module.cc (has_definition): Check DECL_LANG_SPECIFIC.
gcc/cp/module.cc
patch
|
blob
|
history
diff --git
a/gcc/cp/module.cc
b/gcc/cp/module.cc
index ed3dbe244a369bad3af67485e7409b9192e5c8f0..19fe66346bda4eb5d42bc7173ad9fcd12091ad76 100644
(file)
--- 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