This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]