public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18365] New: spurious commas?
@ 2004-11-07 21:38 euclidonomy at hotmail dot com
2004-11-07 21:41 ` [Bug c++/18365] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: euclidonomy at hotmail dot com @ 2004-11-07 21:38 UTC (permalink / raw)
To: gcc-bugs
int main()
{
int a = 1, b;
a = 8, b = 9;
return(0);
}
/*
I believe that the a = 8, b = 9 should result in an error but it does not. I believe that the comma cannot
be used in a non-initializing context according to the C++ Standard.
gcc -v shows:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --
enable-shared --enable-threads=posix --disable-checking --disable-libunwind-exceptions --with-
system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
Thanks for your time,
Shane
*/
--
Summary: spurious commas?
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: euclidonomy at hotmail dot com
CC: euclidonomy at hotmail dot com,gcc-bugs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18365
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/18365] spurious commas?
2004-11-07 21:38 [Bug c++/18365] New: spurious commas? euclidonomy at hotmail dot com
@ 2004-11-07 21:41 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-07 21:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-07 21:41 -------
This is called the comma operator. This is standard C and C++.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18365
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-07 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-07 21:38 [Bug c++/18365] New: spurious commas? euclidonomy at hotmail dot com
2004-11-07 21:41 ` [Bug c++/18365] " pinskia at gcc dot gnu dot org
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).