summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/crash5.C
blob: 6584ee645054e88d66311a31442b1d5f5e0b38c4 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }
//
// PR 17618

void foo()
{
    p; // { dg-error "not declared" }
    (void*) p;
}