public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54999] New: [4.8 regression] ICE in tsubst_copy, at cp/pt.c:12387
@ 2012-10-20 15:14 vincenzo.innocente at cern dot ch
  2012-10-20 15:26 ` [Bug c++/54999] " vincenzo.innocente at cern dot ch
  0 siblings, 1 reply; 2+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-10-20 15:14 UTC (permalink / raw)
  To: gcc-bugs


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: unassigned@gcc.gnu.org
        ReportedBy: vincenzo.innocente@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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/54999] [4.8 regression] ICE in tsubst_copy, at cp/pt.c:12387
  2012-10-20 15:14 [Bug c++/54999] New: [4.8 regression] ICE in tsubst_copy, at cp/pt.c:12387 vincenzo.innocente at cern dot ch
@ 2012-10-20 15:26 ` vincenzo.innocente at cern dot ch
  0 siblings, 0 replies; 2+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-10-20 15:26 UTC (permalink / raw)
  To: gcc-bugs


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

vincenzo Innocente <vincenzo.innocente at cern dot ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-10-20 15:26:03 UTC ---
patch 
http://gcc.gnu.org/bugzilla/attachment.cgi?id=28449
seems to solve the issue

but I get

../.././gcc/cp/pt.c: In function ‘int push_tinst_level(tree_node*)’:
../.././gcc/cp/pt.c:7885: warning: unknown conversion type character ‘S’ in
format
../.././gcc/cp/pt.c:7885: warning: too many arguments for format
../.././gcc/cp/pt.c: In function ‘tree_node* tsubst_copy_and_build(tree_node*,
tree_node*, tsubst_flags_t, tree_node*, bool, bool)’:
../.././gcc/cp/pt.c:13291: warning: format not a string literal and no format
arguments

compiling gcc

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-20 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-20 15:14 [Bug c++/54999] New: [4.8 regression] ICE in tsubst_copy, at cp/pt.c:12387 vincenzo.innocente at cern dot ch
2012-10-20 15:26 ` [Bug c++/54999] " vincenzo.innocente at cern dot ch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).