Debian Codegraph @

gcc/testsuite/g++.dg/DRs/dr2082.C

raw
1 // DR 2082
2
3 void f() {
4 int i;
5 extern void h(int x = sizeof(i));
6 }
7
8 class A {
9 void f(A* p = this) { } // { dg-error "this" }
10 };
11
12 int h(int a, int b = sizeof(a));