Bug 232856 - simplify_gen_subreg gets internal compiler error
Summary: simplify_gen_subreg gets internal compiler error
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc34   
(Show other bugs)
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-03-18 23:55 UTC by Paul McQuesten
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-03-19 08:29:03 UTC
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 23:55 UTC, Paul McQuesten
no flags Details

Description Paul McQuesten 2007-03-18 23:55:32 UTC
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 23:55:32 UTC
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 08:29:03 UTC
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.