diff options
author | Jason Merrill <jason@redhat.com> | 2011-05-27 20:53:58 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-05-27 20:53:58 -0400 |
commit | a6d665993510a9f27dbd892b0e0808dc9e3b9e72 (patch) | |
tree | 72a90dcbd5cb4e2c57bfc70c7ca06aaed89c842d /gcc/cp/mangle.c | |
parent | 669baa1576a1b90def048584f64dbe7cca3f0b94 (diff) | |
download | gcc-a6d665993510a9f27dbd892b0e0808dc9e3b9e72.zip gcc-a6d665993510a9f27dbd892b0e0808dc9e3b9e72.tar.gz gcc-a6d665993510a9f27dbd892b0e0808dc9e3b9e72.tar.bz2 |
mangle.c (mangle_decl_string): Make sure we don't try to mangle templates.
* mangle.c (mangle_decl_string): Make sure we don't try to mangle
templates.
From-SVN: r174376
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r-- | gcc/cp/mangle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 27ef374..7ecfefb 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -3095,6 +3095,9 @@ mangle_decl_string (const tree decl) tree saved_fn = NULL_TREE; bool template_p = false; + /* We shouldn't be trying to mangle an uninstantiated template. */ + gcc_assert (!type_dependent_expression_p (decl)); + if (DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl)) { struct tinst_level *tl = current_instantiation (); |