------- Comment #3 from amylaar at gcc dot gnu dot org  2010-07-01 22:39 -------
(In reply to comment #2)
> Is that really printing -Werror=edantic or a problem copy+pasting?

Yes, it's really printing that.
I think that that's because gcc thinks -pedantic starts with -W...

in opts.c:option_name we have:

      /* A warning classified as an error.  */
      if ((orig_diag_kind == DK_WARNING || orig_diag_kind == DK_PEDWARN)
          && diag_kind == DK_ERROR)
        return concat (cl_options[OPT_Werror_].opt_text,
                       /* Skip over "-W".  */
                       cl_options[option_index].opt_text + 2,
                       NULL);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44752

Reply via email to