re PR c++/27713 (ICE on invalid operator new)

PR c++/27713
	* g++.dg/template/new6.C: New test.

From-SVN: r114208
This commit is contained in:
Volker Reichelt 2006-05-29 19:10:03 +00:00 committed by Volker Reichelt
parent 1753331b5b
commit 944caafcb8
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-05-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27713
* g++.dg/template/new6.C: New test.
2006-05-29 Roger Sayle <roger@eyesopen.com> 2006-05-29 Roger Sayle <roger@eyesopen.com>
PR tree-optimization/24964 PR tree-optimization/24964

View File

@ -0,0 +1,7 @@
// PR c++/27713
// { dg-do compile }
struct A
{
template<int> friend void* operator new(__SIZE_TYPE__); // { dg-error "invalid template" }
};