2012/3/20 :
> Is it a bug or by design? Who can answer the question for me?
This list is for discussing the development of GCC not for help using
it, so this is the wrong mailing list for your question. It would be
more appropriate on the gcc-help mailing list, please take an
follow-up there, tha
Hi,
I used gcc 4.8.0 to compile the piece of code:
#include
#include
void f( const int & i )
{
fprintf( stdout, "1 -> f( const int & i )-> %d\n", i );
}
void f( const int && i )
{
fprintf( stdout, "2 -> f( const int && i )-> %d\n", i );
}
void f( int & i )
{
fprintf( s