summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 1d491cc2..451867a2 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2198,8 +2198,10 @@ target_variable_flavour_calculating_visitor::visit_target_symbol (target_symbol
lvalue,
ty);
}
- catch (const semantic_error& e)
+ catch (const semantic_error& x)
{
+ e->saved_conversion_error = new semantic_error (x);
+ e->saved_conversion_error->tok1 = e->tok;
ty = pe_unknown;
}