[Bug preprocessor/48839] #error should terminate compilation - similar to missing #include
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 22 18:52:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48839
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |joseph at codesourcery dot com
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks. I think the patch proper could be something as simple as the below, but
quite a few C testcases would require updating. I'd like to hear Joseph too
before the next steps.
Index: directives.c
===================================================================
--- directives.c (revision 219024)
+++ directives.c (working copy)
@@ -1103,7 +1103,7 @@ do_diagnostic (cpp_reader *pfile, int code, int re
static void
do_error (cpp_reader *pfile)
{
- do_diagnostic (pfile, CPP_DL_ERROR, 0, 1);
+ do_diagnostic (pfile, CPP_DL_FATAL, 0, 1);
}
static void
More information about the Gcc-bugs
mailing list