summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/new4.C
blob: bf6f06100c700d84715fb6fd3caa54ecb0544baa (plain)
1
2
3
4
5
6
7
8
// PR c++/27559
// { dg-do compile }

struct A
{
    template<typename T>
    static void* operator new(T) {} // { dg-error "first parameter|invalid template" }
};