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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Also, I'd add that
#pragma message "foo " "bar " "baz"
already works fine because it is done in the FE and not in libcpp and so it can
use pragma_lex under the hood to do this.
And, it also has
  if (pragma_lex (&x) != CPP_EOF)
    warning (OPT_Wpragmas, "junk at end of %<#pragma pack%>");
message at the end in case one uses
#pragma message 4
or
#pragma message "foo" 4
etc.
I think #pragma GCC {warning,error} can stay where it is, but it would be nice
if it behaved the same way.

Reply via email to