Description of problem: g++ -g -DDEBUG -c apFact.cpp apFact.cpp: In member function `const Signature& Glossary::gang(Cite) const': apFact.cpp:350: warning: returning reference to temporary apFact.cpp:350: internal compiler error: in simplify_gen_subreg, at simplify-rtx.c:3533 Version-Release number of selected component (if applicable): Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.4 20050721 (Red Hat 3.4.4-2) How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: compiler barfs Expected results: generate good code Additional info:
Created attachment 150343 [details] Preprocessed source stored into /tmp/ccTnUUOo.out file, please attach this to your bugreport.
FC3 is not supported anymore (for more than a year). FC6 gcc correctly reports error in the Glossary::gang function instead. return assoc ? *assoc : &emptySign; should have been: return assoc ? *assoc : emptySign; because &emptySign has type const Signature * rather than const Signature &.