This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/8594: warning on a long long preprocessor constant
- From: sebor at roguewave dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 15 Nov 2002 19:17:12 -0000
- Subject: preprocessor/8594: warning on a long long preprocessor constant
- Reply-to: sebor at roguewave dot com
>Number: 8594
>Category: preprocessor
>Synopsis: warning on a long long preprocessor constant
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 15 11:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: sebor@roguewave.com
>Release: gcc 3.2
>Organization:
>Environment:
>Description:
The preprocessor gives a warning for a long long preprocessor constant in -pedantic mode despite the -Wno-long-long option.
Unless there is another way to suppress the warning I consider it a bug, since the compiler does not diagnose other uses of long long with the same combination of options. I would expect -Wno-long-long to suppress any diagnostics from all stages of translation.
Thanks
Martin
$ cat t.cpp; gcc --version; gcc -Wno-long-long -c -pedantic t.cpp
#define X 1LL
#if X == 1
#endif
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
t.cpp:3:5: warning: too many 'l' suffixes in integer constant
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: