Changeset a8615fd1


Ignore:
Timestamp:
Jul 9, 2018, 1:39:17 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
6fd8b0f, 84c87ff, c3e44e6
Parents:
1319235
Message:

Fixed error in lexer where errors where no printed in STDERR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/lex.ll

    r1319235 ra8615fd1  
    464464void yyerror( const char * errmsg ) {
    465465        SemanticErrorThrow = true;
    466         cout << (yyfilename ? yyfilename : "*unknown file*") << ':' << yylineno << ':' << column - yyleng + 1
     466        cerr << (yyfilename ? yyfilename : "*unknown file*") << ':' << yylineno << ':' << column - yyleng + 1
    467467                 << ": " << ErrorHelpers::error_str() << errmsg << " at token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << '"' << endl;
    468468}
Note: See TracChangeset for help on using the changeset viewer.