c/2646: Invalid warning message

lenon@sanctuary.org lenon@sanctuary.org
Wed Apr 25 14:16:00 GMT 2001


>Number:         2646
>Category:       c
>Synopsis:       Invalid warning message
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 25 14:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Lenon W. Kitchens
>Release:        gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
>Organization:
>Environment:
Standard RedHat 7.1 on x86. It's "out of the box".
>Description:
gcc gives this warning:
test.cc:5:27: warning: trigraph ??! ignored
whenever it sees a string that contains the characters "??!"

the command line I used is:
gcc -Wall -g test.cc -o test
>How-To-Repeat:
#include <stdio.h>
int main(void)
{
    printf("??!!!\r\n");
    return 1;
}
>Fix:
Don't use "??!" in a string :)
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list