diff options
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r-- | gcc/cp/repo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c index 725dbb315f1..b3d327d4b00 100644 --- a/gcc/cp/repo.c +++ b/gcc/cp/repo.c @@ -285,7 +285,8 @@ repo_emit_p (tree decl) else if (DECL_TINFO_P (decl)) type = TREE_TYPE (DECL_NAME (decl)); if (!DECL_TEMPLATE_INSTANTIATION (decl) - && !CLASSTYPE_TEMPLATE_INSTANTIATION (type)) + && (!TYPE_LANG_SPECIFIC (type) + || !CLASSTYPE_TEMPLATE_INSTANTIATION (type))) return 2; } else if (!DECL_TEMPLATE_INSTANTIATION (decl)) |