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]

preprocessor/8594: warning on a long long preprocessor constant


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


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