This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ctor fails: vector<int>(size_type, int)
- To: yotam_medini at tmai dot com
- Subject: ctor fails: vector<int>(size_type, int)
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Mon, 6 Oct 1997 21:11:20 GMT
- Cc: egcs-bugs at cygnus dot com
- References: <199710062346.QAA28358@telaviv.tmai.com>
- Reply-To: mmitchell at usa dot net
>>>>> "Yotam" == Yotam Medini <yotamm@tmai.com> writes:
Yotam> // Using the 'old' 970924 snapshot.
This bug has alread been fixed. For the fix, see:
http://www.cygnus.com/ml/egcs/1997-Oct/0162.html
By the way, your code is illegal, as explained in the above message. :-(
Yotam> The following tiny example says it all:
Yotam> telaviv:522> egcs++ -v Reading specs from
Yotam> /home/seg/yotam/build/dryinst.Solaris/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.10/specs
Yotam> gcc version egcs-2.90.10 970924 (gcc2-970802 experimental)
Yotam> telaviv:523> cat vint.cc #include<vector> void f() {
Yotam> vector<int> viSZTP((vector<int>::size_type)1, 13); #if
Yotam> !defined(SKIPVI) vector<int> vi(1, 13); #endif }
Yotam> telaviv:524> egcs++ -c vint.cc
Yotam> /home/seg/yotam/build/dryinst.Solaris/include/g++/vector.h:103:
Yotam> Internal compiler error 97.
Yotam> /home/seg/yotam/build/dryinst.Solaris/include/g++/vector.h:103:
Yotam> Please submit a full bug report to `egcs-bugs@cygnus.com'.
Yotam> telaviv:525> egcs++ -c -DSKIPVI vint.cc telaviv:526>
Yotam> -- yotam
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu