[Bug c++/22521] internal compiler error: in tsubst_copy

2005-07-17 Thread pinskia at gcc dot gnu dot org

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


[Bug c++/22521] internal compiler error: in tsubst_copy

2005-07-17 Thread basile at starynkevitch dot net

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