+2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
+
+ * g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3.
+ * g++.old-deja/g++.pt/ttp62.C: Same.
+ * g++.old-deja/g++.other/inline14.C: Same.
+
2000-09-24 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/execute/20000914-1.c: Declare malloc.
main ()
{
GcspFlags::btmFlag<GcspFlags::OffYes> f;
- const type_info& ti = typeid (f);
+ const std::type_info& ti = typeid (f);
return 0;
}
{
enum TYPE { Variable, Constant } type;
- ostream& printTo(ostream& out) const
+ std::ostream& printTo(std::ostream& out) const
{
switch (type)
{
};
template <class T>
-inline ostream& operator<< (ostream& out, const TC<T> &c)
+inline std::ostream& operator<< (std::ostream& out, const TC<T> &c)
{
c.getIdent().printTo(out);
return out;
void foo(const TC<IDENT> &c)
{
- cerr << c
+ std::cerr << c
<< ": " // This line is crucial!
<< c
- << endl;
+ << std::endl;
}
};
int main() {
- cout << "should be true: " << is_C(C<int>()) << endl;
- cout << "should be false: " << is_C(D<int>()) << endl;
+ std::cout << "should be true: " << is_C(C<int>()) << std::endl;
+ std::cout << "should be false: " << is_C(D<int>()) << std::endl;
return 0;
}