Consider the following example

---- begin of test.c ----
int main(int argc, char *argv[])
{
  char *sz = "(Is this a correct warning???)";
  return main(1, &sz);   
}
----  end of test.c  ----

If compiled, it displays a warning

# gcc -o test test.c
test.c:3:42: warning: trigraph ??) ignored, use -trigraphs to enable
#


-- 
           Summary: Incorrect warning while compiling string constant with
                    "??)"
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: oder at eleks dot lviv dot ua
 GCC build triplet: x86
  GCC host triplet: x86
GCC target triplet: x86


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

Reply via email to