Bug 29338 - [4.1 regression] ICE on valid C++ code
Summary: [4.1 regression] ICE on valid C++ code
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.1.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-03 23:36 UTC by Debian GCC Maintainers
Modified: 2006-10-18 07:35 UTC (History)
2 users (show)

See Also:
Host:
Target: arm-linux-gnu
Build:
Known to work: 4.0.4 4.2.0
Known to fail: 4.1.2
Last reconfirmed:


Attachments
preprocessed source (133.91 KB, application/x-gzip)
2006-10-03 23:36 UTC, Debian GCC Maintainers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2006-10-03 23:36:13 UTC
[forwarded from http://bugs.debian.org/390620]

arm-linux-gnu, works with 4.0.4, fails with 4.1.2 20060928.


  Matthias


g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -O2 -finline-limit=1200 -c symmetry.cpp  -fPIC -DPIC -o .libs/symmetry.o  
basic.h:85: warning: 'struct GiNaC::map_function' has virtual functions but non-virtual destructor                   
basic.h:104: warning: 'class GiNaC::basic::visitor' has virtual functions but non-virtual destructor                 
ex.h:879: warning: 'class GiNaC::pointer_to_map_function' has virtual functions but non-virtual destructor           
symmetry.h:44: warning: 'class GiNaC::symmetry::visitor' has virtual functions but non-virtual destructor            
numeric.h:80: warning: 'class GiNaC::numeric::visitor' has virtual functions but non-virtual destructor              
container.h: In instantiation of 'GiNaC::container<std::list>::visitor':                                             
container.h:130:   instantiated from 'void GiNaC::container< <template-parameter-1-1> >::accept(GiNaC::visitor&) cons
t [with C = std::list]'                                                                                              
symmetry.cpp:497:   instantiated from here                                                                           
container.h:130: warning: 'class GiNaC::container<std::list>::visitor' has virtual functions but non-virtual destruct
or                                                                                                                   
symmetry.cpp: In function 'GiNaC::ex GiNaC::symm(const GiNaC::ex&, __gnu_cxx::__normal_iterator<const GiNaC::ex*, std
::vector<GiNaC::ex, std::allocator<GiNaC::ex> > >, __gnu_cxx::__normal_iterator<const GiNaC::ex*, std::vector<GiNaC::
ex, std::allocator<GiNaC::ex> > >, bool)':                                                                           
symmetry.cpp:442: internal compiler error: Segmentation fault                                                        
Please submit a full bug report,                                                                                     
with preprocessed source if appropriate.                                                                             
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Debian GCC Maintainers 2006-10-03 23:36:58 UTC
Created attachment 12381 [details]
preprocessed source
Comment 2 Debian GCC Maintainers 2006-10-04 00:06:01 UTC
the file compiles when omitting -finline-limit=1200

  Matthias
Comment 3 Andrew Pinski 2006-10-08 02:05:29 UTC
Works on
[pinskia@celery gcc]$ ./xgcc -v
Using built-in specs.
Target: arm-linux-gnu
Configured with: ../configure --target=arm-linux-gnu : (reconfigured)
Thread model: posix
gcc version 4.2.0 20061007 (experimenta
Comment 4 Andrew Pinski 2006-10-08 02:13:40 UTC
Works with:
[pinskia@celery gcc]$ ./xgcc -v
Using built-in specs.
Target: arm-linux-gnu
Configured with: ../configure --target=arm-linux-gnu
Thread model: posix
gcc version 4.1.2 20061007 (prerelease)
Comment 5 Debian GCC Maintainers 2006-10-18 07:35:11 UTC
works with 4.1 4.1.2 20061015, closing.

  Matthias