X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2Fginsh_lexer.ll;h=cd35605c88cc0ddaffe0d03509158821e6e75028;hp=817df6ec1d505cb39266c16a70dd9765468380dd;hb=e7d59ed49503cfe73fdb6038c2c69c87cbde7c24;hpb=83a7ee99a947cbbf331018b803ad6be43a9ccd45 diff --git a/ginsh/ginsh_lexer.ll b/ginsh/ginsh_lexer.ll index 817df6ec..cd35605c 100644 --- a/ginsh/ginsh_lexer.ll +++ b/ginsh/ginsh_lexer.ll @@ -4,7 +4,7 @@ * This file must be processed with flex. */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2011 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 @@ -113,9 +113,13 @@ real_symbols return T_REAL_SYMBOLS; sym_tab::const_iterator i = syms.find(yytext); if (i == syms.end()) { if (symboltype == domain::complex) { - yylval = syms[yytext] = *(new symbol(yytext)); + symbol tmp(yytext); + syms[yytext] = tmp; + yylval = tmp; } else { - yylval = syms[yytext] = *(new symbol(yytext, domain::real)); + realsymbol tmp(yytext); + syms[yytext] = tmp; + yylval = tmp; } } else yylval = i->second;