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]

c/2646: Invalid warning message



>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:


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