public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97702] New: comma operator does not drop qualifiers during lvalue conversion
@ 2020-11-03 14:48 uecker at eecs dot berkeley.edu
  2020-11-03 18:16 ` [Bug c/97702] " joseph at codesourcery dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: uecker at eecs dot berkeley.edu @ 2020-11-03 14:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97702

            Bug ID: 97702
           Summary: comma operator does not drop qualifiers during lvalue
                    conversion
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: uecker at eecs dot berkeley.edu
  Target Milestone: ---

The following code 

const int x = 0;
typeof(0, x) y = 0;
y = x;

yields an error because '(0, x)' and then 'y' is const 
qualified. This is incorrect as lvalue conversion
should remove the qualifier (ISO C17 6.3.2.1p2).

I assume this is a residual problem from the time
where GCC had generalized lvalues.

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

end of thread, other threads:[~2020-12-23 12:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 14:48 [Bug c/97702] New: comma operator does not drop qualifiers during lvalue conversion uecker at eecs dot berkeley.edu
2020-11-03 18:16 ` [Bug c/97702] " joseph at codesourcery dot com
2020-11-03 21:05 ` uecker at eecs dot berkeley.edu
2020-11-03 22:02 ` joseph at codesourcery dot com
2020-11-05  9:55 ` redi at gcc dot gnu.org
2020-11-05 17:27 ` joseph at codesourcery dot com
2020-11-26  7:27 ` uecker at eecs dot berkeley.edu
2020-12-23 12:34 ` muecker at gwdg dot de

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).