re PR c++/19299 (ICE with volatile non-PODs pointers)

PR c++/19299
	* g++.dg/inherit/volatile1.C: New test.

	PR c++/19440
	* g++.dg/template/dtor4.C: New test.

From-SVN: r95292
This commit is contained in:
Volker Reichelt 2005-02-19 20:36:56 +00:00 committed by Volker Reichelt
parent 145cf79b57
commit 72aff31a37
3 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2005-02-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/19299
* g++.dg/inherit/volatile1.C: New test.
PR c++/19440
* g++.dg/template/dtor4.C: New test.
2005-02-19 Steven G. Kargl <kargls@comcast.net>
* gfortran.dg/int_1.f90: New test.

View File

@ -0,0 +1,14 @@
// PR c++/19299
// Origin: Andrew Pinski <pinskia@gcc.gnu.org>
// { dg-do compile }
struct V
{
virtual void foo() = 0;
};
void bar(V volatile* p)
{
p->V::~V();
}

View File

@ -0,0 +1,9 @@
// PR c++/19440
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }
template<int> struct A
{
~A<0>(); // { dg-error "declaration" }
};