From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 Description of problem: gcc refuses to compile the following code: template <class T> void test(T t) { int x = 0; const typeof(x) & t1 = x+0; } int main(int argc, char **argv) { test(0); return 0; } Version-Release number of selected component (if applicable): gcc-3.2.2-5 How reproducible: Always Steps to Reproduce: 1. gcc -c test.cc -o test 2. 3. Actual Results: test.cc: In function `void test(T) [with T = int]': test.cc:8: instantiated from here test.cc:4: initialization of non-const reference type `int&' from rvalue of type `int' Expected Results: Additional info: This happens in gcc-3_2-branch as well.
Fixed in gcc-3.3.2-1.