]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/62043 (GCC hangs / aborts / double free or corruption (!prev) on invalid...
authorJason Merrill <jason@redhat.com>
Thu, 7 Aug 2014 19:48:36 +0000 (15:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Aug 2014 19:48:36 +0000 (15:48 -0400)
PR c++/62043
* parser.c (c_parse_file): Change sorry to fatal_error.

From-SVN: r213732

gcc/cp/ChangeLog
gcc/cp/parser.c

index 1925891c3f38b980c9ae0b62246a10a6161375b1..38e8daefc06ea601b12f954f2268c147081f8c7f 100644 (file)
@@ -1,5 +1,8 @@
 2014-08-07  Jason Merrill  <jason@redhat.com>
 
+       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.
 
index 78004678fe4f62af7fed53e37ac4fb1d6022e95a..fd2a48f66cd8e9ca1e5a3d4160c2d5adfcaa8f25 100644 (file)
@@ -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 ();