Bug 232856 - simplify_gen_subreg gets internal compiler error
simplify_gen_subreg gets internal compiler error
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: gcc34 (Show other bugs)
3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-18 19:55 EDT by Paul McQuesten
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-03-19 04:29:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Preprocessed source stored into /tmp/ccTnUUOo.out file, please attach this to your bugreport. (1.48 MB, text/plain)
2007-03-18 19:55 EDT, Paul McQuesten
no flags Details

  None (edit)
Description Paul McQuesten 2007-03-18 19:55:32 EDT
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:
Comment 1 Paul McQuesten 2007-03-18 19:55:32 EDT
Created attachment 150343 [details]
Preprocessed source stored into /tmp/ccTnUUOo.out file, please attach this to your bugreport.
Comment 2 Jakub Jelinek 2007-03-19 04:29:03 EDT
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 &.

Note You need to log in before you can comment on or make changes to this bug.