http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54999

             Bug #: 54999
           Summary: [4.8 regression] ICE in tsubst_copy, at cp/pt.c:12387
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: vincenzo.innoce...@cern.ch


(most probably related to 54844 and all others involving "sizeof")
got several of those mostly in memcpy as below
(known to work in trunk revision 191215)

c++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --disable-multilib --enable-gold=yes
--disable-nls --enable-lto
--with-mpc=/afs/cern.ch/cms/slc5_amd64_gcc472/external/gcc/4.7.2
--with-gmp=/afs/cern.ch/cms/slc5_amd64_gcc472/external/gcc/4.7.2
--with-mpfr=/afs/cern.ch/cms/slc5_amd64_gcc472/external/gcc/4.7.2
--prefix=/afs/cern.ch/user/i/innocent/w3/gcc47slc5
--enable-languages=c,c++,fortran,lto
Thread model: posix
gcc version 4.8.0 20121020 (experimental) [trunk revision 192631] (GCC) 
[vocms123] ~/public/ctest/bugs48 $ c++ -msse3 -std=c++11 -c -O2 ice_mcp.ii 
In file included from
/afs/cern.ch/cms/sw/ReleaseCandidates/slc5_amd64_gcc472/thu/6.1.LTO-thu-02/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/CLHEP/interface/AlgebraicObjects.h:16:0,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/TrackingRecHit/interface/TrackingRecHit.h:4,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h:4,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/PatternTools/interface/MeasurementExtractor.h:4,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/PatternTools/src/MeasurementExtractor.cc:1:
/afs/cern.ch/cms/sw/ReleaseCandidates/slc5_amd64_gcc472/thu/6.1.LTO-thu-02/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/CLHEP/interface/Migration.h:
In instantiation of 'CLHEP::HepVector asHepVector(const
ROOT::Math::SVector<double, D1>&) [with unsigned int N = 5u]':
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/PatternTools/src/MeasurementExtractor.cc:4:73:
  required from here
/afs/cern.ch/cms/sw/ReleaseCandidates/slc5_amd64_gcc472/thu/6.1.LTO-thu-02/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/CLHEP/interface/Migration.h:45:35:
internal compiler error: in tsubst_copy, at cp/pt.c:12387
     memcpy(&hv[0], &v[0], N*sizeof(double));
                                   ^
0x582883 tsubst_copy
    ../../gcc-trunk/gcc/cp/pt.c:12387
0x5722e2 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../gcc-trunk/gcc/cp/pt.c:13514
0x571701 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../gcc-trunk/gcc/cp/pt.c:13539
0x571182 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../gcc-trunk/gcc/cp/pt.c:13494
0x5726ae tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../gcc-trunk/gcc/cp/pt.c:13749
0x57a224 tsubst_expr
    ../../gcc-trunk/gcc/cp/pt.c:13194
0x57b19b tsubst_expr
    ../../gcc-trunk/gcc/cp/pt.c:12679
0x57992b tsubst_expr
    ../../gcc-trunk/gcc/cp/pt.c:12665
0x579aac tsubst_expr
    ../../gcc-trunk/gcc/cp/pt.c:12849
0x578326 instantiate_decl(tree_node*, int, bool)
    ../../gcc-trunk/gcc/cp/pt.c:18671
0x5b3103 instantiate_pending_templates(int)
    ../../gcc-trunk/gcc/cp/pt.c:18770
0x5ef650 cp_write_global_declarations()
    ../../gcc-trunk/gcc/cp/decl2.c:3993
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

known to work
c++ -msse3 -std=c++11 -c -O2 ice_mcp.ii 
pb-d-128-141-131-94:bugs48 innocent$ c++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin12.1.0/4.8.0/lto-wrapper
Target: x86_64-apple-darwin12.1.0
Configured with: ./configure --enable-languages=c,c++,fortran
--disable-multilib --disable-bootstrap --enable-lto -disable-libitm
Thread model: posix
gcc version 4.8.0 20120912 (experimental) [trunk revision 191215] (GCC) 

Fails also in
pb-d-128-141-131-94:bugs48 innocent$ c++ -msse3 -std=c++11 -c -O2 ice_mcp.ii 
In file included from
/afs/cern.ch/cms/sw/ReleaseCandidates/slc5_amd64_gcc472/thu/6.1.LTO-thu-02/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/CLHEP/interface/AlgebraicObjects.h:16:0,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/TrackingRecHit/interface/TrackingRecHit.h:4,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h:4,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/PatternTools/interface/MeasurementExtractor.h:4,
                 from
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/PatternTools/src/MeasurementExtractor.cc:1:
/afs/cern.ch/cms/sw/ReleaseCandidates/slc5_amd64_gcc472/thu/6.1.LTO-thu-02/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/CLHEP/interface/Migration.h:
In instantiation of ‘CLHEP::HepVector asHepVector(const
ROOT::Math::SVector<double, D1>&) [with unsigned int N = 5u]’:
/build/vin/CMSSW_6_1_LTO_X_2012-10-18-0200/src/TrackingTools/PatternTools/src/MeasurementExtractor.cc:4:73:
  required from here
/afs/cern.ch/cms/sw/ReleaseCandidates/slc5_amd64_gcc472/thu/6.1.LTO-thu-02/CMSSW_6_1_LTO_X_2012-10-18-0200/src/DataFormats/CLHEP/interface/Migration.h:45:35:
internal compiler error: in tsubst_copy, at cp/pt.c:12387
/proc/self/exe: No such file or directory
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
pb-d-128-141-131-94:bugs48 innocent$ c++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin12.2.0/4.8.0/lto-wrapper
Target: x86_64-apple-darwin12.2.0
Configured with: ./configure --enable-languages=c,c++,fortran
--disable-multilib --disable-bootstrap --enable-lto -disable-libitm
Thread model: posix
gcc version 4.8.0 20121020 (experimental) [trunk revision 192636] (GCC)

Reply via email to