[PING] [PATCH/C++/diagnostic] Be extra pedantic about stray semicolons

Dirk Mueller dmueller@suse.de
Thu Mar 29 23:54:00 GMT 2007


On Wednesday, 21. March 2007, Manuel López-Ibáñez wrote:

> By the way, Dirk, your patch does not have a testcase for the actual
> diagnostic (please use dg-warning or dg-error as appropriate)

You're right. I've committed below after a successful regtest. 

Thanks,
Dirk

2007-03-29  Dirk Mueller  <dmueller@suse.de>

        * g++.dg/warn/pedantic2.C: New testcase.


--- testsuite/g++.dg/warn/pedantic2.C
+++ testsuite/g++.dg/warn/pedantic2.C
@@ -0,0 +1,6 @@
+// { dg-options "-pedantic" }
+
+class foo
+{
+  foo() {};      // { dg-error "extra" }
+};



More information about the Gcc-patches mailing list