public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42655]  New: Don't qualify rvalues of non-class types
@ 2010-01-08  3:17 schaub-johannes at web dot de
  2010-01-08  3:23 ` [Bug c++/42655] ! causes the qualified types for rvalue pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: schaub-johannes at web dot de @ 2010-01-08  3:17 UTC (permalink / raw)
  To: gcc-bugs

GCC applies cv-qualifiers to rvalues of non-class types. The following code is
all right, but GCC doesn't like it:

template<typename T>
void unused(T const &) { }

int main() {
  volatile bool x = false;
  unused(!x); // type of "!x" is bool
}


-- 
           Summary: Don't qualify rvalues of non-class types
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schaub-johannes at web dot de
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42655


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

end of thread, other threads:[~2010-01-14 20:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-08  3:17 [Bug c++/42655] New: Don't qualify rvalues of non-class types schaub-johannes at web dot de
2010-01-08  3:23 ` [Bug c++/42655] ! causes the qualified types for rvalue pinskia at gcc dot gnu dot org
2010-01-08  3:24 ` [Bug c++/42655] [4.3/4.4/4.5 Regression] " pinskia at gcc dot gnu dot org
2010-01-08  3:35 ` schaub-johannes at web dot de
2010-01-08  3:41 ` schaub-johannes at web dot de
2010-01-08  3:42 ` pinskia at gcc dot gnu dot org
2010-01-08  3:43 ` wkf at alum dot mit dot edu
2010-01-08  3:43 ` pinskia at gcc dot gnu dot org
2010-01-09 12:45 ` jason at gcc dot gnu dot org
2010-01-14 16:37 ` rguenth at gcc dot gnu dot org
2010-01-14 20:22 ` jason at gcc dot gnu dot org
2010-01-14 20:42 ` jason at gcc dot gnu dot org
2010-01-14 20:46 ` jason 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).