Changeset a8615fd1 for src


Ignore:
Timestamp:
Jul 9, 2018, 1:39:17 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
6fd8b0f, 84c87ff, c3e44e6a
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.