Bug 455812

Summary: gcc internal error (4.3.1 20080507 prerelease)
Product: [openSUSE] openSUSE 11.0 Reporter: Alexandr Malusek <alexandr.malusek>
Component: DevelopmentAssignee: Michael Matz <matz>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: preprocessed source file (via gcc -E)

Description Alexandr Malusek 2008-12-02 23:04:52 UTC
Created attachment 257521 [details]
preprocessed source file (via gcc -E)

gcc fails to compile ROOT 5.21/06, http://root.cern.ch/root/Version521.html.  Namely the file XrdSecProtocolpwd.cc.  To reproduce the problem, run:

g++ -c -fPIC -rdynamic -Wall -Wno-deprecated -O2 XrdSecProtocolpwd_preprocessed.cc
XrdSecProtocolpwd.cc: In member function ‘virtual XrdSecCredentials* XrdSecProtocolpwd::getCredentials(XrdSecParameters*, XrdOucErrInfo*)’:
XrdSecProtocolpwd.cc:853: internal compiler error: in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:588
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.

The XrdSecProtocolpwd_preprocessed.cc file is attached.  It was generated as

g++ -E -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
-D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall \
-Wno-deprecated -D__linux__  -O2 -DXrdDEBUG=0   -DR__SHADOWPW \
  -I. -I.. XrdSecProtocolpwd.cc > XrdSecProtocolpwd_preprocessed.cc

Notes:
- gcc doesn't fail when the option -O is used.
- I'm not familiar with gcc internal errors so this problem may have already been reported

Versions:
$ uname -a
Linux bamse 2.6.25.18-0.2-default #1 SMP 2008-10-21 16:30:26 +0200 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]
Comment 1 Richard Biener 2008-12-03 10:09:58 UTC

*** This bug has been marked as a duplicate of bug 423594 ***