diff --git a/gcc/testsuite/g++.dg/parse/parameter-declaration-1.C b/gcc/testsuite/g++.dg/parse/parameter-declaration-1.C new file mode 100644 index 000000000000..28949d8310d1 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/parameter-declaration-1.C @@ -0,0 +1,6 @@ +// Contributed by Gabriel Dos Reis +// Origin: Robert Schiele; PR C++/8799 +// { dg-do compile } + +struct { + a(void = 0; a(0), a(0) // { dg-error "" }