public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22521] New:  internal compiler error: in tsubst_copy
@ 2005-07-17 14:31 basile at starynkevitch dot net
  2005-07-17 15:18 ` [Bug c++/22521] " basile at starynkevitch dot net
  2005-07-17 16:31 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: basile at starynkevitch dot net @ 2005-07-17 14:31 UTC (permalink / raw)
  To: gcc-bugs

the preprocessed file, which I uploaded on 
http://starynkevitch.net/Basile/jaksy-g++-4.1.0-20050717-bug.ii.gz (md5sum of
gzipped file is e71436c0b8f93cef110aa6068b13bcb3) produce a reproducible
compiler bug:
 /usr/local/bin/g++_4_snap -c jaksy.ii
jaksy.hh: In constructor 'Jaksy_TVector<ctag, ScalarT,
VectorT>::add_first(VectorT*, ScalarT)::QishCpp_Locals::QishCpp_Locals() [with
int ctag = 1007, ScalarT = void*, VectorT = Jaksy_Vector]':
jaksy.hh:672:   instantiated from 'static Jaksy_TVector<ctag, ScalarT, VectorT>*
Jaksy_TVector<ctag, ScalarT, VectorT>::add_first(VectorT*, ScalarT) [with int
ctag = 1007, ScalarT = void*, VectorT = Jaksy_Vector]'
jaksy.hh:734:   instantiated from here
jaksy.hh:672: internal compiler error: in tsubst_copy, at cp/pt.c:7684
Please submit a full bug report,

This bug is the same with g++-4.0 from debian/sid and with latest CVS (from
yesterday) of gcc.

(this is from a free GPL/LPGL software I am currently developping. The program
may be not very meaningful yet; it is experimental).

-- 
           Summary:  internal compiler error: in tsubst_copy
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: basile at starynkevitch dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet:  i686-pc-linux-gnu
  GCC host triplet:  i686-pc-linux-gnu
GCC target triplet:  i686-pc-linux-gnu


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


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

* [Bug c++/22521]  internal compiler error: in tsubst_copy
  2005-07-17 14:31 [Bug c++/22521] New: internal compiler error: in tsubst_copy basile at starynkevitch dot net
@ 2005-07-17 15:18 ` basile at starynkevitch dot net
  2005-07-17 16:31 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: basile at starynkevitch dot net @ 2005-07-17 15:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From basile at starynkevitch dot net  2005-07-17 14:31 -------
Created an attachment (id=9293)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9293&action=view)
preprocessor output (gnuzipped) of failing code

Sample code (preprocessor output with g++ -C -E and appropriate -I) which
demonstrate thje bug. Sorry, I've got no smaller case. But I guess the problem
lies within the Jaksy_TVector template, which is not that big. Most of the
includes come from Qt4 (not very used) and my Qish garbage collector (see
http://starynkevitch.net/Basile/qishintro.html for more, get its latest
snapshot).

The attachement is self-contained and does not need any other file.

I tried several other ways of coding, and the same bug appears.

Regards.

-- 


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


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

* [Bug c++/22521] internal compiler error: in tsubst_copy
  2005-07-17 14:31 [Bug c++/22521] New: internal compiler error: in tsubst_copy basile at starynkevitch dot net
  2005-07-17 15:18 ` [Bug c++/22521] " basile at starynkevitch dot net
@ 2005-07-17 16:31 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-17 16:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-17 16:31 -------
This code is invalid.  You cannot access a local variable in a local class.

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

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
  GCC build triplet| i686-pc-linux-gnu          |i686-pc-linux-gnu
   GCC host triplet| i686-pc-linux-gnu          |i686-pc-linux-gnu
 GCC target triplet| i686-pc-linux-gnu          |i686-pc-linux-gnu
         Resolution|                            |DUPLICATE
            Summary| internal compiler error: in|internal compiler error: in
                   |tsubst_copy                 |tsubst_copy


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


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

end of thread, other threads:[~2005-07-17 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-17 14:31 [Bug c++/22521] New: internal compiler error: in tsubst_copy basile at starynkevitch dot net
2005-07-17 15:18 ` [Bug c++/22521] " basile at starynkevitch dot net
2005-07-17 16:31 ` pinskia at gcc dot gnu dot org

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).