------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-07 15:49 ------- Not a bug as you cannot bind a rvalue to the reference type. Basicially what you have is:
int g(void); void h(int&); void j(void) { h(g()); } And that is invalid. You can bind a rvalue to a const reference type though. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23764