This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: fix PR/8799


Neil Booth <neil@daikokuya.co.uk> writes:

| Did you add a testcase?

Done with this.

-- Gaby
Index: parameter-declaration-1.C
===================================================================
RCS file: parameter-declaration-1.C
diff -N parameter-declaration-1.C
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- parameter-declaration-1.C	7 Dec 2002 18:38:36 -0000
***************
*** 0 ****
--- 1,6 ----
+ // Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
+ // Origin: Robert Schiele; PR C++/8799
+ // { dg-do compile }
+ 
+ struct {
+    a(void = 0; a(0), a(0)                 // { dg-error "" }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]