* This file must be processed with flex. */
/*
- * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2008 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
{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;