This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41795] New: Incorrect warning while compiling string constant with "??)"
- From: "oder at eleks dot lviv dot ua" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2009 10:35:34 -0000
- Subject: [Bug c/41795] New: Incorrect warning while compiling string constant with "??)"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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