[Bug preprocessor/48839] #error should terminate compilation - similar to missing #include

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Sun Jul 21 13:56:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48839

--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Hi Eric

(In reply to Eric Gallager from comment #9)
> (In reply to Paolo Carlini from comment #8)
> > Hi. As you can see, the patch itself seems simple, but a while ago I noticed
> > that quite a few testcases would need adjusting and that made me a little
> > nervous. In particular those testcases (both C and C++) which are doing more
> > than one check and would have to be split, because the compilation ends
> > after the first #error. 
> 
> Which testcases are these?

Eric, It’s been a while, and I’m in the middle of a few other things, but you
can apply the patchlet (I’m pretty sure that it still applies as-is or with
minor variants) and see yourself! By the way, if you feel like immediately
pursuing the thing yourself, thus patch + testsuite tweaks + sending the whole
package to the mailing list for comments, by all means reassign the bug to
yourself and go ahead!


More information about the Gcc-bugs mailing list