This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/10439: A small standard non-conformance
- From: be9-ml at be9 dot ru
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Apr 2003 10:56:46 -0000
- Subject: c/10439: A small standard non-conformance
- Reply-to: be9-ml at be9 dot ru
>Number: 10439
>Category: c
>Synopsis: A small standard non-conformance
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 19 11:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: be9-ml at be9 dot ru
>Release: gcc-2.95.4, gcc-3.2.1
>Organization:
>Environment:
2.95.4 under FreeBSD 4.8-STABLE
3.2.1 under Linux (ALTLinux Junior 2.2)
>Description:
Well, the standard says that the comma operator in C always results in an r-value even if its right operand is an l-value. The following code is invalid though it compiles
under gcc even with -ansi switch
int i;
int j;
(i, j) = 1; // Invalid C
>How-To-Repeat:
Just compile it :-)
>Fix:
?
>Release-Note:
>Audit-Trail:
>Unformatted: