This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/41795] New: Incorrect warning while compiling string constant with "??)"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]