From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26705 invoked by alias); 24 Oct 2009 15:40:37 -0000 Received: (qmail 26676 invoked by uid 48); 24 Oct 2009 15:40:27 -0000 Date: Sat, 24 Oct 2009 15:40:00 -0000 Subject: [Bug c++/41815] New: GCC wrongly treats rvalues of non-class type cv-qualified X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "schaub-johannes at web dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg02114.txt.bz2 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