Re: A problem related to const rvalue

2012-03-20 Thread Jonathan Wakely
2012/3/20 chmodexplo...@sina.com: 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

A problem related to const rvalue

2012-03-19 Thread chmodexplorer
Hi, I used gcc 4.8.0 to compile the piece of code: #include stdio.h #include utility 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(