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
* [Bug c++/41815] [C++0x] GCC wrongly treats rvalues of non-class type cv-qualified
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 ` 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
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-03 16:38 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-11-03 16:38:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41815
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/41815] [C++0x] GCC wrongly treats rvalues of non-class type cv-qualified
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
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-03 18:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jason at gcc dot gnu dot org 2009-11-03 18:43 -------
Subject: Bug 41815
Author: jason
Date: Tue Nov 3 18:42:59 2009
New Revision: 153862
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153862
Log:
PR c++/41815
* call.c (build_call_a): Strip cv-quals from rvalue result.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/rv-return.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/deduce.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41815
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/41815] [C++0x] GCC wrongly treats rvalues of non-class type cv-qualified
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
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-03 18:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-11-03 18:43 -------
Fixed for 4.5.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
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).