mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 01:50:33 +08:00
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:
parent
145cf79b57
commit
72aff31a37
@ -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.
|
||||
|
14
gcc/testsuite/g++.dg/inherit/volatile1.C
Normal file
14
gcc/testsuite/g++.dg/inherit/volatile1.C
Normal 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();
|
||||
}
|
9
gcc/testsuite/g++.dg/template/dtor4.C
Normal file
9
gcc/testsuite/g++.dg/template/dtor4.C
Normal 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" }
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user