public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41815]  New: GCC wrongly treats rvalues of non-class type cv-qualified
@ 2009-10-24 15:40 schaub-johannes at web dot de
  2009-11-03 16:38 ` [Bug c++/41815] [C++0x] " jason at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: schaub-johannes at web dot de @ 2009-10-24 15:40 UTC (permalink / raw)
  To: gcc-bugs

The issue rises up with C++0x's decltype and rvalue references:

int const f() { return 0; }

int &&r = f(); // binding "int&&" to "int" should succeed
decltype(0, f()) i; // "i" should get type "int", not "int const". 

In C++, non-class type are not cv-qualified.


-- 
           Summary: GCC wrongly treats rvalues of non-class type cv-
                    qualified
           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


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


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

end of thread, other threads:[~2009-11-03 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-24 15:40 [Bug c++/41815] New: GCC wrongly treats rvalues of non-class type cv-qualified schaub-johannes at web dot de
2009-11-03 16:38 ` [Bug c++/41815] [C++0x] " jason at gcc dot gnu dot org
2009-11-03 18:43 ` jason at gcc dot gnu dot org
2009-11-03 18:43 ` 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).