This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21353] [3.4/4.0/4.1 Regression] rvalues should not be allowed to be default values for non const references in class functions.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2005 05:51:53 -0000
- Subject: [Bug c++/21353] [3.4/4.0/4.1 Regression] rvalues should not be allowed to be default values for non const references in class functions.
- References: <20050503085034.21353.s_siddharth_reddy@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12 05:51 -------
Reduced testcase:
enum X{ a, b, c };
class C
{
void func( X & ref = a );
};
This has been failing since "3.4.0 20040116" (which is the branch date for 3.4.0).
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-05-03 15:04:22 |2005-07-12 05:51:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21353