[Bug c++/13663] [3.3 regression] gcc segfaults on invalid use of member

gdr at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Mar 13 01:10:00 GMT 2004


------- Additional Comments From gdr at gcc dot gnu dot org  2004-03-13 01:10 -------
I tried to backport Mark's patch from GCC-3.4.x to GCC-3.3.4 but it breaks
libstdc++-v3 with:

In file included from
/home/gdr/build/3/i686-pc-linux-gnu/libstdc++-v3/include/memory:54,
                 from
/home/gdr/build/3/i686-pc-linux-gnu/libstdc++-v3/include/string:48,
                 from
/home/gdr/build/3/i686-pc-linux-gnu/libstdc++-v3/include/bitset:55,
                 from /home/gdr/redhat/3.gcc/libstdc++-v3/src/bitset.cc:43:
/home/gdr/build/3/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h: In
   function `_OutputIter std::__copy(_InputIter, _InputIter, _OutputIter, 
   std::input_iterator_tag)':
/home/gdr/build/3/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:227:
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.

I suspect the cause is that in GCC-3.4.x and higher we have better idea of
what names should evaluate to, so the fix used by Mark is probably sufficient
there.  For GCC-3.3.x I think I would have to rethink the logic.

-- Gaby


-- 


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



More information about the Gcc-bugs mailing list