blob: 9e2d6bdad436b284bcc34d0d8c6add56ba894f92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/42387
// { dg-options "" }
template<class PF>
struct AvlTreeIter
{
int Num();
AvlTreeIter()
{
new (void* [Num()]); // { dg-warning "parentheses" }
}
};
AvlTreeIter<int> a; // { dg-message "from here" }
|