]> www.ginac.de Git - ginac.git/blobdiff - ginac/input_lexer.ll
* Improved lsolve() of systems containing non-numeric coefficients.
[ginac.git] / ginac / input_lexer.ll
index 84998d6cb25292493a90ab8abd3618564a7d6fa3..bc568ceb7a03a740a83ae66adf9fc9abe2f130b8 100644 (file)
@@ -4,7 +4,7 @@
  *  This file must be processed with flex. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -119,7 +119,9 @@ Digits                      ginac_yylval = (long)Digits; return T_DIGITS;
 {A}{AN}*               {
                                sym_tab::const_iterator i = syms.find(yytext);
                                if (i == syms.end()) {
-                                       syms[yytext] = sym_def(ginac_yylval = *(new symbol(yytext)), false);
+                                       symbol tmp(yytext);
+                                       ginac_yylval = tmp;
+                                       syms[yytext] = sym_def(tmp, false);
                                } else
                                        ginac_yylval = (*i).second.sym;
                                return T_SYMBOL;