From: Jason Merrill Date: Thu, 7 Aug 2014 19:48:36 +0000 (-0400) Subject: re PR c++/62043 (GCC hangs / aborts / double free or corruption (!prev) on invalid... X-Git-Tag: releases/gcc-5.1.0~5596 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a53d90b5fa1d6db71b2c9d384a74c88c3d2b58b;p=thirdparty%2Fgcc.git re PR c++/62043 (GCC hangs / aborts / double free or corruption (!prev) on invalid input) PR c++/62043 * parser.c (c_parse_file): Change sorry to fatal_error. From-SVN: r213732 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1925891c3f38..38e8daefc06e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2014-08-07 Jason Merrill + PR c++/62043 + * parser.c (c_parse_file): Change sorry to fatal_error. + PR c++/61959 * semantics.c (cxx_eval_bare_aggregate): Handle POINTER_PLUS_EXPR. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 78004678fe4f..fd2a48f66cd8 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -31942,10 +31942,7 @@ c_parse_file (void) static bool already_called = false; if (already_called) - { - sorry ("inter-module optimizations not implemented for C++"); - return; - } + fatal_error ("inter-module optimizations not implemented for C++"); already_called = true; the_parser = cp_parser_new ();