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

From-SVN: r36190
This commit is contained in:
Nathan Sidwell 2000-09-06 09:06:04 +00:00 committed by Nathan Sidwell
parent c833d2be02
commit 6e92b232be
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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>
* gcc.c-torture/20000906.c: New test.

View File

@ -0,0 +1,33 @@
// 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;
}