This is valid from 4.0 to 4.5.  Very minor, agreed.

const char *cp = "\z\é\ ";

gives

foo.cc:1:1: warning: unknown escape sequence '\z'
foo.cc:1:1: warning: unknown escape sequence: '\303'
foo.cc:1:1: warning: unknown escape sequence: '\040'

I think the first one should also have its colon.


-- 
           Summary: Inconsistency in warnings on invalid \-escapes
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: akim dot demaille at gmail dot com


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

Reply via email to