public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* preprocessor/8594: warning on a long long preprocessor constant
@ 2002-11-21 11:06 sebor
  0 siblings, 0 replies; 2+ messages in thread
From: sebor @ 2002-11-21 11:06 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: preprocessor/8594: warning on a long long preprocessor constant
@ 2002-11-21 11:11 zack
  0 siblings, 0 replies; 2+ messages in thread
From: zack @ 2002-11-21 11:11 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sebor

Synopsis: warning on a long long preprocessor constant

State-Changed-From-To: open->closed
State-Changed-By: zack
State-Changed-When: Fri Nov 15 11:28:45 2002
State-Changed-Why:
    Already fixed in 3.2.1.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8594


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-15 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21 11:06 preprocessor/8594: warning on a long long preprocessor constant sebor
2002-11-21 11:11 zack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).