Commit 6e92b232 by Nathan Sidwell Committed by Nathan Sidwell

* g++.old-deja/g++.pt/crash58.C: New test.

From-SVN: r36190
parent c833d2be
2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.pt/crash58.C: New test.
2000-09-06 Greg McGary <greg@mcgary.org> 2000-09-06 Greg McGary <greg@mcgary.org>
* gcc.c-torture/20000906.c: New test. * gcc.c-torture/20000906.c: New test.
......
// Build don't link:
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Sept 2000 <nathan@codesourcery.com>
// bug 147. We ICE'd on an unprocessed LOOKUP_EXPR during tsubsting
namespace EManip {
template <class T> void do_assign(T* d); // ERROR - candidate
};
template <class T> void do_assign(T* d); // ERROR - candidate
template <class T>
struct MatrixC
{
void foo () {
EManip::do_assign<T> (0);
&EManip::do_assign<T>;
&do_assign<T>;
EManip::do_assign<T>; // WARNING - not a call
do_assign<T>; // WARNING - not a call
}
};
void foo(MatrixC <double> *ptr)
{
EManip::do_assign<double>; // WARNING - not a call
&EManip::do_assign<double>;
ptr->foo ();
void (*p1) (int *) = &do_assign<double>; // ERROR - cannot convert
void (*p2) (int *) = &EManip::do_assign<double>; // ERROR - cannot convert
void (*p3) (int *) = &do_assign;
void (*p4) (int *) = &EManip::do_assign;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment