]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2007-03-22 Dirk Mueller <dmueller@suse.de>
authormueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Mar 2007 19:44:09 +0000 (19:44 +0000)
committermueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Mar 2007 19:44:09 +0000 (19:44 +0000)
        * g++.old-deja/g++.brendan/warnings2.C: Don't use -pedantic.
        * g++.dg/other/static1.C: Remove stray semicolon.
        * g++.dg/other/init1.C: Likewise.
        * g++.dg/rtti/dyncast1.C: Likewise.
        * g++.dg/tree-ssa/pr17153.C: Likewise.
        * g++.dg/lookup/disamb1.C: Likewise.
        * g++.dg/lookup/scoped2.C: Likewise.
        * g++.dg/lookup/friend7.C: Likewise.
        * g++.dg/parse/parse4.C: Likewise.
        * g++.dg/parse/parse5.C: Likewise.
        * g++.dg/expr/pr29066.C: Likewise.
        * g++.dg/expr/cast4.C: Likewise.
        * g++.dg/tc1/dr193.C: Likewise.
        * g++.dg/tc1/dr213.C: Likewise.
        * g++.dg/abi/dcast1.C: Likewise.
        * g++.dg/abi/covariant2.C: Likewise.
        * g++.dg/inherit/covariant11.C: Likewise.
        * g++.dg/inherit/covariant9.C: Likewise.
        * g++.dg/inherit/covariant10.C: Likewise.
        * g++.dg/init/static3.C: Likewise.
        * g++.dg/init/init-ref3.C: Likewise.
        * g++.dg/init/ref10.C: Likewise.
        * g++.dg/template/meminit2.C: Likewise.
        * g++.dg/template/using9.C: Likewise.
        * g++.dg/template/friend9.C: Likewise.
        * g++.dg/template/ref1.C: Likewise.
        * g++.old-deja/g++.warn/inline.C: Likewise.
        * g++.old-deja/g++.robertl/eb91.C: Likewise.
        * g++.old-deja/g++.robertl/eb46.C: Likewise.
        * g++.old-deja/g++.robertl/eb34.C: Likewise.
        * g++.old-deja/g++.robertl/eb43.C: Likewise.
        * g++.old-deja/g++.robertl/eb26.C: Likewise.
        * g++.old-deja/g++.robertl/eb116.C: Likewise.
        * g++.old-deja/g++.brendan/copy5.C: Likewise.
        * g++.old-deja/g++.brendan/overload8.C: Likewise.
        * g++.old-deja/g++.brendan/overload11.C: Likewise.
        * g++.old-deja/g++.brendan/copy7.C: Likewise.
        * g++.old-deja/g++.brendan/crash38.C: Likewise.
        * g++.old-deja/g++.brendan/template11.C: Likewise.
        * g++.old-deja/g++.brendan/err-msg3.C: Likewise.
        * g++.old-deja/g++.brendan/crash50.C: Likewise.
        * g++.old-deja/g++.brendan/crash16.C: Likewise.
        * g++.old-deja/g++.jason/pmem2.C: Likewise.
        * g++.old-deja/g++.jason/parse9.C: Likewise.
        * g++.old-deja/g++.jason/byval2.C: Likewise.
        * g++.old-deja/g++.jason/overload8.C: Likewise.
        * g++.old-deja/g++.jason/pmf8.C: Likewise.
        * g++.old-deja/g++.jason/template33.C: Likewise.
        * g++.old-deja/g++.jason/return3.C: Likewise.
        * g++.old-deja/g++.jason/scoping2.C: Likewise.
        * g++.old-deja/g++.jason/virtual.C: Likewise.
        * g++.old-deja/g++.jason/opeq3.C: Likewise.
        * g++.old-deja/g++.jason/template27.C: Likewise.
        * g++.old-deja/g++.jason/synth6.C: Likewise.
        * g++.old-deja/g++.jason/ref8.C: Likewise.
        * g++.old-deja/g++.jason/offset1.C: Likewise.
        * g++.old-deja/g++.other/static20.C: Likewise.
        * g++.old-deja/g++.other/array1.C: Likewise.
        * g++.old-deja/g++.other/new3.C: Likewise.
        * g++.old-deja/g++.other/array2.C: Likewise.
        * g++.old-deja/g++.other/overload9.C: Likewise.
        * g++.old-deja/g++.other/cast6.C: Likewise.
        * g++.old-deja/g++.other/ptrmem8.C: Likewise.
        * g++.old-deja/g++.other/eh4.C: Likewise.
        * g++.old-deja/g++.other/using7.C: Likewise.
        * g++.old-deja/g++.other/init18.C: Likewise.
        * g++.old-deja/g++.other/dyncast1.C: Likewise.
        * g++.old-deja/g++.other/dyncast2.C: Likewise.
        * g++.old-deja/g++.other/dtor11.C: Likewise.
        * g++.old-deja/g++.pt/static11.C: Likewise.
        * g++.old-deja/g++.pt/crash19.C: Likewise.
        * g++.old-deja/g++.pt/overload12.C: Likewise.
        * g++.old-deja/g++.pt/crash46.C: Likewise.
        * g++.old-deja/g++.pt/mi1.C: Likewise.
        * g++.old-deja/g++.pt/vaarg3.C: Likewise.
        * g++.old-deja/g++.pt/nontype5.C: Likewise.
        * g++.old-deja/g++.pt/local5.C: Likewise.
        * g++.old-deja/g++.pt/typename2.C: Likewise.
        * g++.old-deja/g++.pt/explicit80.C: Likewise.
        * g++.old-deja/g++.pt/auto_ptr.C: Likewise.
        * g++.old-deja/g++.law/visibility1.C: Likewise.
        * g++.old-deja/g++.law/visibility2.C: Likewise.
        * g++.old-deja/g++.law/virtual2.C: Likewise.
        * g++.old-deja/g++.law/operators19.C: Likewise.
        * g++.old-deja/g++.law/parsing10.C: Likewise.
        * g++.old-deja/g++.law/visibility4.C: Likewise.
        * g++.old-deja/g++.law/operators4.C: Likewise.
        * g++.old-deja/g++.law/dtors2.C: Likewise.
        * g++.old-deja/g++.law/missed-error3.C: Likewise.
        * g++.old-deja/g++.law/visibility10.C: Likewise.
        * g++.old-deja/g++.law/scope3.C: Likewise.
        * g++.old-deja/g++.law/casts2.C: Likewise.
        * g++.old-deja/g++.law/code-gen5.C: Likewise.
        * g++.old-deja/g++.law/operators33.C: Likewise.
        * g++.old-deja/g++.law/friend4.C: Likewise.
        * g++.old-deja/g++.mike/pmf7.C: Likewise.
        * g++.old-deja/g++.mike/p5611.C: Likewise.
        * g++.old-deja/g++.mike/net37.C: Likewise.
        * g++.old-deja/g++.mike/p3570.C: Likewise.
        * g++.old-deja/g++.mike/p5718.C: Likewise.
        * g++.old-deja/g++.mike/net21.C: Likewise.
        * g++.old-deja/g++.mike/p1862.C: Likewise.
        * g++.old-deja/g++.mike/p4511.C: Likewise.
        * g++.old-deja/g++.mike/virt3.C: Likewise.
        * g++.old-deja/g++.mike/p16146.C: Likewise.
        * g++.old-deja/g++.mike/p1989.C: Likewise.
        * g++.old-deja/g++.mike/p5571.C: Likewise.
        * g++.old-deja/g++.gb/scope10.C: Likewise.
        * g++.old-deja/g++.abi/primary5.C: Likewise.
        * g++.old-deja/g++.abi/empty2.C: Likewise.
        * g++.old-deja/g++.abi/arraynew.C: Likewise.
        * g++.old-deja/g++.eh/vbase4.C: Likewise.
        * g++.old-deja/g++.eh/ptr1.C: Likewise.
        * g++.old-deja/g++.eh/cleanup1.C: Likewise.
        * g++.old-deja/g++.bob/template3.C: Likewise.
        * g++.old-deja/g++.bob/inherit1.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123132 138bc75d-0d04-0410-961f-82ee72b054a4

117 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/covariant2.C
gcc/testsuite/g++.dg/abi/dcast1.C
gcc/testsuite/g++.dg/expr/cast4.C
gcc/testsuite/g++.dg/expr/pr29066.C
gcc/testsuite/g++.dg/inherit/covariant10.C
gcc/testsuite/g++.dg/inherit/covariant11.C
gcc/testsuite/g++.dg/inherit/covariant9.C
gcc/testsuite/g++.dg/init/init-ref3.C
gcc/testsuite/g++.dg/init/ref10.C
gcc/testsuite/g++.dg/init/static3.C
gcc/testsuite/g++.dg/lookup/disamb1.C
gcc/testsuite/g++.dg/lookup/friend7.C
gcc/testsuite/g++.dg/lookup/scoped2.C
gcc/testsuite/g++.dg/other/init1.C
gcc/testsuite/g++.dg/other/static1.C
gcc/testsuite/g++.dg/parse/parse4.C
gcc/testsuite/g++.dg/parse/parse5.C
gcc/testsuite/g++.dg/rtti/dyncast1.C
gcc/testsuite/g++.dg/tc1/dr193.C
gcc/testsuite/g++.dg/tc1/dr213.C
gcc/testsuite/g++.dg/template/friend9.C
gcc/testsuite/g++.dg/template/meminit2.C
gcc/testsuite/g++.dg/template/ref1.C
gcc/testsuite/g++.dg/template/using9.C
gcc/testsuite/g++.dg/tree-ssa/pr17153.C
gcc/testsuite/g++.old-deja/g++.abi/arraynew.C
gcc/testsuite/g++.old-deja/g++.abi/empty2.C
gcc/testsuite/g++.old-deja/g++.abi/primary5.C
gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
gcc/testsuite/g++.old-deja/g++.bob/template3.C
gcc/testsuite/g++.old-deja/g++.brendan/copy5.C
gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
gcc/testsuite/g++.old-deja/g++.brendan/crash16.C
gcc/testsuite/g++.old-deja/g++.brendan/crash38.C
gcc/testsuite/g++.old-deja/g++.brendan/crash50.C
gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C
gcc/testsuite/g++.old-deja/g++.brendan/overload11.C
gcc/testsuite/g++.old-deja/g++.brendan/overload8.C
gcc/testsuite/g++.old-deja/g++.brendan/template11.C
gcc/testsuite/g++.old-deja/g++.brendan/warnings2.C
gcc/testsuite/g++.old-deja/g++.eh/cleanup1.C
gcc/testsuite/g++.old-deja/g++.eh/ptr1.C
gcc/testsuite/g++.old-deja/g++.eh/vbase4.C
gcc/testsuite/g++.old-deja/g++.gb/scope10.C
gcc/testsuite/g++.old-deja/g++.jason/byval2.C
gcc/testsuite/g++.old-deja/g++.jason/offset1.C
gcc/testsuite/g++.old-deja/g++.jason/opeq3.C
gcc/testsuite/g++.old-deja/g++.jason/overload8.C
gcc/testsuite/g++.old-deja/g++.jason/parse9.C
gcc/testsuite/g++.old-deja/g++.jason/pmem2.C
gcc/testsuite/g++.old-deja/g++.jason/pmf8.C
gcc/testsuite/g++.old-deja/g++.jason/ref8.C
gcc/testsuite/g++.old-deja/g++.jason/return3.C
gcc/testsuite/g++.old-deja/g++.jason/scoping2.C
gcc/testsuite/g++.old-deja/g++.jason/synth6.C
gcc/testsuite/g++.old-deja/g++.jason/template27.C
gcc/testsuite/g++.old-deja/g++.jason/template33.C
gcc/testsuite/g++.old-deja/g++.jason/virtual.C
gcc/testsuite/g++.old-deja/g++.law/casts2.C
gcc/testsuite/g++.old-deja/g++.law/code-gen5.C
gcc/testsuite/g++.old-deja/g++.law/dtors2.C
gcc/testsuite/g++.old-deja/g++.law/friend4.C
gcc/testsuite/g++.old-deja/g++.law/missed-error3.C
gcc/testsuite/g++.old-deja/g++.law/operators19.C
gcc/testsuite/g++.old-deja/g++.law/operators33.C
gcc/testsuite/g++.old-deja/g++.law/operators4.C
gcc/testsuite/g++.old-deja/g++.law/parsing10.C
gcc/testsuite/g++.old-deja/g++.law/scope3.C
gcc/testsuite/g++.old-deja/g++.law/virtual2.C
gcc/testsuite/g++.old-deja/g++.law/visibility1.C
gcc/testsuite/g++.old-deja/g++.law/visibility10.C
gcc/testsuite/g++.old-deja/g++.law/visibility2.C
gcc/testsuite/g++.old-deja/g++.law/visibility4.C
gcc/testsuite/g++.old-deja/g++.mike/net21.C
gcc/testsuite/g++.old-deja/g++.mike/net37.C
gcc/testsuite/g++.old-deja/g++.mike/p16146.C
gcc/testsuite/g++.old-deja/g++.mike/p1862.C
gcc/testsuite/g++.old-deja/g++.mike/p1989.C
gcc/testsuite/g++.old-deja/g++.mike/p3570.C
gcc/testsuite/g++.old-deja/g++.mike/p4511.C
gcc/testsuite/g++.old-deja/g++.mike/p5571.C
gcc/testsuite/g++.old-deja/g++.mike/p5611.C
gcc/testsuite/g++.old-deja/g++.mike/p5718.C
gcc/testsuite/g++.old-deja/g++.mike/pmf7.C
gcc/testsuite/g++.old-deja/g++.mike/virt3.C
gcc/testsuite/g++.old-deja/g++.other/array1.C
gcc/testsuite/g++.old-deja/g++.other/array2.C
gcc/testsuite/g++.old-deja/g++.other/cast6.C
gcc/testsuite/g++.old-deja/g++.other/dtor11.C
gcc/testsuite/g++.old-deja/g++.other/dyncast1.C
gcc/testsuite/g++.old-deja/g++.other/dyncast2.C
gcc/testsuite/g++.old-deja/g++.other/eh4.C
gcc/testsuite/g++.old-deja/g++.other/init18.C
gcc/testsuite/g++.old-deja/g++.other/new3.C
gcc/testsuite/g++.old-deja/g++.other/overload9.C
gcc/testsuite/g++.old-deja/g++.other/ptrmem8.C
gcc/testsuite/g++.old-deja/g++.other/static20.C
gcc/testsuite/g++.old-deja/g++.other/using7.C
gcc/testsuite/g++.old-deja/g++.pt/auto_ptr.C
gcc/testsuite/g++.old-deja/g++.pt/crash19.C
gcc/testsuite/g++.old-deja/g++.pt/crash46.C
gcc/testsuite/g++.old-deja/g++.pt/explicit80.C
gcc/testsuite/g++.old-deja/g++.pt/local5.C
gcc/testsuite/g++.old-deja/g++.pt/mi1.C
gcc/testsuite/g++.old-deja/g++.pt/nontype5.C
gcc/testsuite/g++.old-deja/g++.pt/overload12.C
gcc/testsuite/g++.old-deja/g++.pt/static11.C
gcc/testsuite/g++.old-deja/g++.pt/typename2.C
gcc/testsuite/g++.old-deja/g++.pt/vaarg3.C
gcc/testsuite/g++.old-deja/g++.robertl/eb116.C
gcc/testsuite/g++.old-deja/g++.robertl/eb26.C
gcc/testsuite/g++.old-deja/g++.robertl/eb34.C
gcc/testsuite/g++.old-deja/g++.robertl/eb43.C
gcc/testsuite/g++.old-deja/g++.robertl/eb46.C
gcc/testsuite/g++.old-deja/g++.robertl/eb91.C
gcc/testsuite/g++.old-deja/g++.warn/inline.C

index 6f551d028dc88d3d41ef875cfbbab269ec001c0e..ea1d1d78615e75f5a41a1b725a1eb26e0aa6dac2 100644 (file)
@@ -1,3 +1,122 @@
+2007-03-22  Dirk Mueller  <dmueller@suse.de>
+
+       * g++.old-deja/g++.brendan/warnings2.C: Don't use -pedantic.
+       * g++.dg/other/static1.C: Remove stray semicolon.
+       * g++.dg/other/init1.C: Likewise.
+       * g++.dg/rtti/dyncast1.C: Likewise.
+       * g++.dg/tree-ssa/pr17153.C: Likewise.
+       * g++.dg/lookup/disamb1.C: Likewise.
+       * g++.dg/lookup/scoped2.C: Likewise.
+       * g++.dg/lookup/friend7.C: Likewise.
+       * g++.dg/parse/parse4.C: Likewise.
+       * g++.dg/parse/parse5.C: Likewise.
+       * g++.dg/expr/pr29066.C: Likewise.
+       * g++.dg/expr/cast4.C: Likewise.
+       * g++.dg/tc1/dr193.C: Likewise.
+       * g++.dg/tc1/dr213.C: Likewise.
+       * g++.dg/abi/dcast1.C: Likewise.
+       * g++.dg/abi/covariant2.C: Likewise.
+       * g++.dg/inherit/covariant11.C: Likewise.
+       * g++.dg/inherit/covariant9.C: Likewise.
+       * g++.dg/inherit/covariant10.C: Likewise.
+       * g++.dg/init/static3.C: Likewise.
+       * g++.dg/init/init-ref3.C: Likewise.
+       * g++.dg/init/ref10.C: Likewise.
+       * g++.dg/template/meminit2.C: Likewise.
+       * g++.dg/template/using9.C: Likewise.
+       * g++.dg/template/friend9.C: Likewise.
+       * g++.dg/template/ref1.C: Likewise.
+       * g++.old-deja/g++.warn/inline.C: Likewise.
+       * g++.old-deja/g++.robertl/eb91.C: Likewise.
+       * g++.old-deja/g++.robertl/eb46.C: Likewise.
+       * g++.old-deja/g++.robertl/eb34.C: Likewise.
+       * g++.old-deja/g++.robertl/eb43.C: Likewise.
+       * g++.old-deja/g++.robertl/eb26.C: Likewise.
+       * g++.old-deja/g++.robertl/eb116.C: Likewise.
+       * g++.old-deja/g++.brendan/copy5.C: Likewise.
+       * g++.old-deja/g++.brendan/overload8.C: Likewise.
+       * g++.old-deja/g++.brendan/overload11.C: Likewise.
+       * g++.old-deja/g++.brendan/copy7.C: Likewise.
+       * g++.old-deja/g++.brendan/crash38.C: Likewise.
+       * g++.old-deja/g++.brendan/template11.C: Likewise.
+       * g++.old-deja/g++.brendan/err-msg3.C: Likewise.
+       * g++.old-deja/g++.brendan/crash50.C: Likewise.
+       * g++.old-deja/g++.brendan/crash16.C: Likewise.
+       * g++.old-deja/g++.jason/pmem2.C: Likewise.
+       * g++.old-deja/g++.jason/parse9.C: Likewise.
+       * g++.old-deja/g++.jason/byval2.C: Likewise.
+       * g++.old-deja/g++.jason/overload8.C: Likewise.
+       * g++.old-deja/g++.jason/pmf8.C: Likewise.
+       * g++.old-deja/g++.jason/template33.C: Likewise.
+       * g++.old-deja/g++.jason/return3.C: Likewise.
+       * g++.old-deja/g++.jason/scoping2.C: Likewise.
+       * g++.old-deja/g++.jason/virtual.C: Likewise.
+       * g++.old-deja/g++.jason/opeq3.C: Likewise.
+       * g++.old-deja/g++.jason/template27.C: Likewise.
+       * g++.old-deja/g++.jason/synth6.C: Likewise.
+       * g++.old-deja/g++.jason/ref8.C: Likewise.                                     
+       * g++.old-deja/g++.jason/offset1.C: Likewise.
+       * g++.old-deja/g++.other/static20.C: Likewise.
+       * g++.old-deja/g++.other/array1.C: Likewise.
+       * g++.old-deja/g++.other/new3.C: Likewise.
+       * g++.old-deja/g++.other/array2.C: Likewise.
+       * g++.old-deja/g++.other/overload9.C: Likewise.
+       * g++.old-deja/g++.other/cast6.C: Likewise.
+       * g++.old-deja/g++.other/ptrmem8.C: Likewise.
+       * g++.old-deja/g++.other/eh4.C: Likewise.
+       * g++.old-deja/g++.other/using7.C: Likewise.
+       * g++.old-deja/g++.other/init18.C: Likewise.
+       * g++.old-deja/g++.other/dyncast1.C: Likewise.
+       * g++.old-deja/g++.other/dyncast2.C: Likewise.
+       * g++.old-deja/g++.other/dtor11.C: Likewise.
+       * g++.old-deja/g++.pt/static11.C: Likewise.
+       * g++.old-deja/g++.pt/crash19.C: Likewise.
+       * g++.old-deja/g++.pt/overload12.C: Likewise.
+       * g++.old-deja/g++.pt/crash46.C: Likewise.
+       * g++.old-deja/g++.pt/mi1.C: Likewise.
+       * g++.old-deja/g++.pt/vaarg3.C: Likewise.
+       * g++.old-deja/g++.pt/nontype5.C: Likewise.
+       * g++.old-deja/g++.pt/local5.C: Likewise.
+       * g++.old-deja/g++.pt/typename2.C: Likewise.
+       * g++.old-deja/g++.pt/explicit80.C: Likewise.
+       * g++.old-deja/g++.pt/auto_ptr.C: Likewise.
+       * g++.old-deja/g++.law/visibility1.C: Likewise.
+       * g++.old-deja/g++.law/visibility2.C: Likewise.
+       * g++.old-deja/g++.law/virtual2.C: Likewise.
+       * g++.old-deja/g++.law/operators19.C: Likewise.
+       * g++.old-deja/g++.law/parsing10.C: Likewise.
+       * g++.old-deja/g++.law/visibility4.C: Likewise.
+       * g++.old-deja/g++.law/operators4.C: Likewise.
+       * g++.old-deja/g++.law/dtors2.C: Likewise.
+       * g++.old-deja/g++.law/missed-error3.C: Likewise.
+       * g++.old-deja/g++.law/visibility10.C: Likewise.
+       * g++.old-deja/g++.law/scope3.C: Likewise.
+       * g++.old-deja/g++.law/casts2.C: Likewise.
+       * g++.old-deja/g++.law/code-gen5.C: Likewise.
+       * g++.old-deja/g++.law/operators33.C: Likewise.
+       * g++.old-deja/g++.law/friend4.C: Likewise.
+       * g++.old-deja/g++.mike/pmf7.C: Likewise.
+       * g++.old-deja/g++.mike/p5611.C: Likewise.
+       * g++.old-deja/g++.mike/net37.C: Likewise.
+       * g++.old-deja/g++.mike/p3570.C: Likewise.
+       * g++.old-deja/g++.mike/p5718.C: Likewise.
+       * g++.old-deja/g++.mike/net21.C: Likewise.
+       * g++.old-deja/g++.mike/p1862.C: Likewise.
+       * g++.old-deja/g++.mike/p4511.C: Likewise.
+       * g++.old-deja/g++.mike/virt3.C: Likewise.
+       * g++.old-deja/g++.mike/p16146.C: Likewise.
+       * g++.old-deja/g++.mike/p1989.C: Likewise.  
+       * g++.old-deja/g++.mike/p5571.C: Likewise.
+       * g++.old-deja/g++.gb/scope10.C: Likewise.
+       * g++.old-deja/g++.abi/primary5.C: Likewise.
+       * g++.old-deja/g++.abi/empty2.C: Likewise.
+       * g++.old-deja/g++.abi/arraynew.C: Likewise.
+       * g++.old-deja/g++.eh/vbase4.C: Likewise.
+       * g++.old-deja/g++.eh/ptr1.C: Likewise.
+       * g++.old-deja/g++.eh/cleanup1.C: Likewise.
+       * g++.old-deja/g++.bob/template3.C: Likewise.
+       * g++.old-deja/g++.bob/inherit1.C: Likewise.
+       
 2006-03-22  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/31193
index 87eb2a2708c7ff0dc7b3951917b2d953ed6bd4a5..3231cc4c84c40502ef883a17623294ed0828ea26 100644 (file)
@@ -10,7 +10,7 @@ struct c1 {};
 
 struct c3 : virtual c1
 {
-    virtual c1* f6() {};
+    virtual c1* f6() {}
     int i;
 };
 
@@ -18,7 +18,7 @@ struct c6 : virtual c3 { };
 
 struct c7 : c3
 {
-    virtual c3* f6() {};
+    virtual c3* f6() {}
 };
 
 struct c24 : virtual c7
index 402684ff4467891841904669515203ac7fd0b26a..99f678ff3a9a019914f99f497b8620ac35e02f48 100644 (file)
@@ -5,20 +5,20 @@
 
 // PR 9433. segfault at runtime.
 
-struct A        { virtual void f() {}; };
+struct A        { virtual void f() {} };
 struct B        {int b;};
-struct C : A, B { virtual void f() {}; int c;};
+struct C : A, B { virtual void f() {} int c;};
 struct D : C    {int d;};
 struct E : C    {int e;};
 struct F : protected D, E  {int f;};
 struct H : virtual F {int h;};
 struct I : H  {int i;};
 struct J : H  {int j;};
-struct K : I, J { virtual void f() {}; int k; };
+struct K : I, J { virtual void f() {} int k; };
 struct M : K  {int m;};
 struct N : M  {int n;};
 struct O : M  {int o;};
-struct P : N, O { virtual void f() {}; int p;};
+struct P : N, O { virtual void f() {} int p;};
 
 int main()
 {
index 72be9a6af19a2bb9b9e51e60e29caf17592691b4..e9f529b11c6270b86a67b0cf0d647a927db39f07 100644 (file)
@@ -10,8 +10,8 @@ struct foo {
 
 class Foobar : public foo {
 public:
-  Foobar() { a = 1; b = 2; };
-  virtual ~Foobar() {};
+  Foobar() { a = 1; b = 2; }
+  virtual ~Foobar() {}
 };
 
 Foobar obj;
index cd841654104687e803106565c4a39872c9035600..8bf6bb0a0c8ca9c5f5002d77726bb7340672d982 100644 (file)
@@ -11,7 +11,7 @@ struct X
 
 struct Z : public X
 {
-  void a(void) {};
+  void a(void) {}
 };
 
 
index 4fcf7ead234ad0cd91e736f5a8da900a8d2c0bc7..fe5d03c27d3ae288b9d6ae023e42a3fc4f5584c1 100644 (file)
@@ -5,18 +5,18 @@
 // PR c++/12699 ICE with covariancy
 
 struct c1 {
-  virtual void f1() const {};
+  virtual void f1() const {}
 };
 
 struct c5 {};
 
 struct c6 : virtual c1 {
-  virtual c5* f33() const {};
+  virtual c5* f33() const {}
 };
 
 struct c13 : virtual c5 { };
 
 struct c17 : virtual c6
 {
-  virtual c13* f33() const {};
+  virtual c13* f33() const {}
 };
index f82c4187984425a51caf5978528ca6f4229f7f6d..acba965f3af0983eb1e5c17d7d5a1827e7b46c6b 100644 (file)
@@ -7,19 +7,19 @@
 struct c2 { int i; };
 
 struct c1 {
-  virtual c2& f8() {};
+  virtual c2& f8() {}
 };
 
 struct c3 : c1, c2 {
-  virtual c2& f8() {};
+  virtual c2& f8() {}
 };
 
 struct c11 : public c1 {
-  virtual c3& f8() {};
+  virtual c3& f8() {}
 };
 
 struct c15 : virtual c3 {
-  virtual c2& f8() {};
+  virtual c2& f8() {}
 };
 
 struct c18 : virtual c11 {
index 3266c75a768446df5f9c2a3c5e4b52cc1a73ccbb..62c3a2202eb8a5d84604de1758c0e10c3050a05c 100644 (file)
@@ -9,19 +9,19 @@ struct c1 {};
 
 struct c0 {
   int i;
-  virtual c1& f10() {};
+  virtual c1& f10() {}
 };
 
 struct c2 : virtual c1, c0 { };
 
 struct c6 : virtual c2, c0 {
-  virtual c2& f10() {};
+  virtual c2& f10() {}
 };
 
 struct c14 : virtual c2 { };
 
 struct c19 : virtual ::c6 {
-  virtual class ::c14& f10() {};
+  virtual class ::c14& f10() {}
 };
 
 int main ()
index aaf04cff6848d2ac6c8d8880dac322b5ce53ac49..e858fd74d317e58ab36867077b5593aa7f2ad62d 100644 (file)
@@ -9,8 +9,8 @@ protected:
 
 public:
   
-  Ptr(void) : ptr(0) { };
-  Ptr(T * p) : ptr(p) { };
+  Ptr(void) : ptr(0) { }
+  Ptr(T * p) : ptr(p) { }
   
   ~Ptr(void) { delete ptr; }
   
index 73fd6de92dc08276dfe6d631d189e5d9ffa56396..7a280dd41e722c14fe9ebdc468415d7e802f63f0 100644 (file)
@@ -2,10 +2,10 @@
 
 struct A {};
 struct B : protected A {
-    B() {};
-    B(const A& ) {};
+    B() {}
+    B(const A& ) {}
 private:
-    B(const B& ) {};
+    B(const B& ) {}
 };
 
 void foo(const A* ap)
index a8e62169f30cf6682f7fa2e1744f51539b1ab171..8fac85fbc93a0488e509dabb78f4197b0374c7b7 100644 (file)
@@ -3,7 +3,7 @@
 struct T
 {
   static void (*handler)();
-  static void func() {};
+  static void func() {}
 };
 
 bool fail;
index 638eb2fcdca9d0e5a7ce50d4f13b244f2e876fa5..7585a32e1e279bf5b6b2a1e04325318f02f0f9a5 100644 (file)
@@ -11,5 +11,5 @@ struct B2: public A {};
 
 struct C: public B1, public B2
 {
-  void g() { B1::f(); };
+  void g() { B1::f(); }
 };
index dd19c72f9a6567c3726b4e67372caafb1a8b6c64..ce9b79f8fe4c1c42a096276b6db08f2fa6f20065 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do compile }
 // PR c++/7874: Don't inject friend functions into global name space.
 
-namespace N { template<typename T> struct A { friend void f(A) { }; }; }
+namespace N { template<typename T> struct A { friend void f(A) { } }; }
 int main()
 {
    N::A<int> a;
index 08882d97438b99667f0ea0a33f1f1db9ce764155..99cedcec8b15e85ecea90fbc42d1af2c64d22e26 100644 (file)
@@ -15,5 +15,5 @@ struct Derived : Base
   {
     Base::Baz ();  // { dg-error "is not a member" "" }
       
-  };
+  }
 };
index ec1986e9b7ac9195da125aa86242f008cbb480a7..7fc7db66a06a7551eccaaecd4aa8b678828416ef 100644 (file)
@@ -11,7 +11,7 @@ struct B : A
 {
   typedef A Parent;
   
-  B () : Parent () {};
+  B () : Parent () {}
 };
 
 class T
index 09e17d4b5ba7d5fc6a2c4580a2dc3a275a5bad51..5cf0b92567f8af535f861116db1a336d351eca77 100644 (file)
@@ -13,5 +13,5 @@ struct foo {
 };
 struct bar {
   int z;
-  bar () { foo::x[z]; };
+  bar () { foo::x[z]; }
 };
index bacc9ff06b1048d5a0ca2654acc0c680bed2f779..9df1754ab4705d9988c05198584a3cc874f7ecac 100644 (file)
@@ -20,6 +20,6 @@ class Camera2
 {
 public:
   Camera2(const Hvec &basepos);
-  inline Camera2() { Camera2(Hvec(0.0,0.0,0.0)); };
+  inline Camera2() { Camera2(Hvec(0.0,0.0,0.0)); }
   ~Camera2();
 };
index d3e015a9a3cb5f864615044f4c3875e58f3ef6d4..f9e6a035984707d667d59515f9d5e0f082103bc7 100644 (file)
@@ -11,8 +11,8 @@ class BadStream : public ostringstream
 {    
 public: 
   enum InternalEnum { VALUE = 0 };   
-  BadStream( InternalEnum e ) {};
-  BadStream( InternalEnum e, int i ) {};
+  BadStream( InternalEnum e ) {}
+  BadStream( InternalEnum e, int i ) {}
 };
 
 int main() 
index 204b4462f93063257fa275442a527b39fd37b193..ace1aef06000cc99ab4888c8da9fab8ac1e1de4d 100644 (file)
@@ -3,7 +3,7 @@ class JunkBase
 public:
     virtual void DoSomething( void ) = 0;
 protected:
-    virtual ~JunkBase( void ) {};
+    virtual ~JunkBase( void ) {}
     JunkBase( void ) {}
 };
 
index 5855593e5a98c3cbf9e5fa0e7e2e23007a7e49eb..40b0650840f59448da5fa49592c3ec521215837a 100644 (file)
@@ -27,7 +27,7 @@ namespace N1 {
     B x;
     ~C() {
       A y;
-    };
+    }
   };
 }
 
@@ -59,7 +59,7 @@ namespace N2 {
     B<T> x;
     ~C() {
       A<T> y;
-    };
+    }
   };
 }
 
index a8961655b7ad51a927532c7b34c7848f550b7d6e..2cc70138acfaf7642e71d99aa214abe989dccf08 100644 (file)
@@ -14,7 +14,7 @@ template <class T> struct A : T {
 
 struct B {
   void f(B);
-  void g(B) {};
+  void g(B) {}
 };
 
 void f(B) {}
index 4464e5f8ee8a816a3de24a47a374100807099d46..add5fb0d344d84cb12631a3e9d806109e9dd0100 100644 (file)
@@ -14,5 +14,5 @@ template <typename P> class Y {
 };
 
 template <typename T> struct X<1,T> {
-    X () { Y<T>::i; };     // access private field
+    X () { Y<T>::i; }     // access private field
 };
index b3cacbfacb51808ec8a707b662e70071fbc05c63..f6afa0151cd580db5f49a8e0d6766e0faf273c5c 100644 (file)
@@ -9,13 +9,13 @@ template <typename K1> struct O {
 template <typename T> 
 struct A : typename O<T>::template I<int> {   // { dg-error "keyword 'typename' not allowed" }
   A() :    typename O<T>::template I<int>()   // { dg-error "keyword 'typename' not allowed" }
-  {};
+  {}
 };
 
 template <typename T> 
 struct B : O<T>::template I<int> {
   B() :    O<T>::I<int>()   // { dg-error "used as template|it is a template" "" }
-  {};
+  {}
 };
 
 // { dg-bogus "end of input" "bogus token skipping in the parser" { xfail *-*-* } 17 }
index 92ccc42cb11a799f1e1d3b1bf0d790e26d385075..9b001fa00f4f83f8107a1fedfe4f10a5ab591e4e 100644 (file)
@@ -1,3 +1,3 @@
 class a {} a1;
-template <a & p> class b { public: b() { static_cast <a &> (p); }; };
+template <a & p> class b { public: b() { static_cast <a &> (p); } };
 int main() { b <a1> b1; }
index a2c06a70d9dd58b5610125a76b49e994f6e90afc..ac5194509c81d30e128ef84cb25952013276bc06 100644 (file)
@@ -4,9 +4,9 @@
 
 // PR c++/17154: Using declaration in partial class template specialization.
 
-template <int numrows, class T> struct A { void test_A() {}; };
+template <int numrows, class T> struct A { void test_A() {} };
 template <int numrows, class T> struct B {};
 template <class T> struct B <3, T> : public A <3, T> {
        using A <3, T>::test_A;
-       void test_B_spec() { test_A(); };
+       void test_B_spec() { test_A(); }
 };
index 91b4cfe1503eba9723a235c696cc20fe8957609e..658225e6ecca950274ca5485c2da4d96583da919 100644 (file)
@@ -11,7 +11,7 @@ struct B : A
     {
         foo(__PRETTY_FUNCTION__);
         return B();
-    };
+    }
 };
 
 B b=B().bar();
index c3408810aef718fc613b4fca7ef918bd01271e0a..ff19c7e377717b910b74debdf1675ea2299d9e34 100644 (file)
@@ -94,19 +94,19 @@ void check_placement_cookie (int i)
 struct X {};
 
 template <typename T>
-struct Y { int i; virtual void f () {}; };
+struct Y { int i; virtual void f () {} };
 
 // A class with a non-trivial destructor -- it needs a cookie.
-struct Z { ~Z () {}; };
+struct Z { ~Z () {} };
 // Likewise, but this class needs a bigger cookie so that the array
 // elements are correctly aligned.
-struct Z2 { ~Z2 () {}; long double d; };
+struct Z2 { ~Z2 () {} long double d; };
   
-struct W1 { void operator delete[] (void *, size_t) {}; };
-struct W2 { void operator delete[] (void *) {}
-            void operator delete[] (void *, size_t) {}; };
-struct W3 { void operator delete[] (void *, size_t) {}
-            void operator delete[] (void *) {}; };
+struct W1 { void operator delete[] (void *, size_t) {} };
+struct W2 { void operator delete[] (void *) {}
+            void operator delete[] (void *, size_t) {} };
+struct W3 { void operator delete[] (void *, size_t) {}
+            void operator delete[] (void *) {} };
 struct W4 : public W1 {};
 
 struct V { void *operator new[] (size_t s, void *p) 
index 842a5d12e77423984de56b18597c3193d8726bcc..65d6a459426738c8b2fa1401c3adbfd5d2d5b8bd 100644 (file)
@@ -17,35 +17,35 @@ struct B8 : A {};
 
 struct C1 : B1
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 struct C2 : B1, B2
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 struct C3 : B1, B2, B3
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 struct C4 : B1, B2, B3, B4
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 struct C5 : B1, B2, B3, B4, B5
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 struct C6 : B1, B2, B3, B4, B5, B6
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 struct C7 : B1, B2, B3, B4, B5, B6, B7
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 struct C8 : B1, B2, B3, B4, B5, B6, B7, B8
 {
-  virtual void Foo () {};
+  virtual void Foo () {}
 };
 
 struct D1 : virtual C1 {};
index dca878be17161de4194e656431587ef8a9dc8a5c..07ea2d7d8e303fd2fb29f25c53b4983c8620a785 100644 (file)
@@ -6,7 +6,7 @@
 
 struct A1
 {
-   virtual void Foo () {};
+   virtual void Foo () {}
 };
 
 struct A : A1
index 54a9f7366cae1a1f1af453085d3cf8bf9d6102ce..9d26867dcdb91a5be5b9f4eccf9414612a6de67d 100644 (file)
@@ -2,7 +2,7 @@
 class A {
 char str[10];
 public:
-    char* m1 () { return str;};
+    char* m1 () { return str;}
 };
 
 class C : public A {
index 6def4b521919de9d75565b4b21efa7ca4246989d..c440f47b9aa5b8d5ca66335cdd2773e8242230e9 100644 (file)
@@ -38,7 +38,7 @@ public:
 class ObjectExchange
 {
 public:
-    ObjectExchange() {};
+    ObjectExchange() {}
 
     ExchangeableList   i_theWatchList; // Instruments being monitored
 };
index 31e660e27187875a31297b9b1e5556835918849c..c91559645e9ec92e71b0ea38e955baad91e9aadf 100644 (file)
@@ -35,10 +35,10 @@ class BaseClass {
 
 public:
 
-  BaseClass( const BaseClass& ir ) : i(ir.i) {};
-  BaseClass() : i(5) {};
+  BaseClass( const BaseClass& ir ) : i(ir.i) {}
+  BaseClass() : i(5) {}
 
-  virtual int virtMember() { return( 999 ); };
+  virtual int virtMember() { return( 999 ); }
 
   void Increm( int r );
 };
@@ -54,7 +54,7 @@ void BaseClass::Increm( int r )
 
 class DerivedClass : public BaseClass {
 public:
-  int virtMember() { return( 30 ); };
+  int virtMember() { return( 30 ); }
 };
 
 int operator != (const BaseClass irv, int x) { return irv.i != x; }
index f7f54f158dbc882aeb64a2ddd132bf991e388207..8fbec3384ac77179146bd9b268a500ca4fa7ece3 100644 (file)
@@ -8,7 +8,7 @@ void die () { printf ("FAIL\n"); exit (1); }
 class B {
 public:
   B() {}
-  B(const B &) { printf ("PASS\n"); exit (0); };
+  B(const B &) { printf ("PASS\n"); exit (0); }
 private:
     int x;
 };
index 8fec8d1132fa7d78272104da91a0cfaa83bd8909..7151eb136188f9594bbd182fe6299e962b3452a3 100644 (file)
@@ -3,7 +3,7 @@
 class Graph {
 public:
       unsigned         char N;
-      Graph(void) {}; // { dg-error "previously defined here" }
+      Graph(void) {} // { dg-error "previously defined here" }
 }
 
 Graph::Graph(void)    // { dg-error "return type|redefinition|semicolon" }
index d7f0552caa5c420a2e79e6f55005a7ad0f49fbdc..80ef47180a92e6ff959fd2b43b4bc029070588a1 100644 (file)
@@ -24,8 +24,8 @@ public:
 template< class T,  int n> class Implicit : public T {
    public:
      typedef typename T::BASE BASE;
-     Implicit(BASE value ): T(value) {};
-     Implicit() : T() {};
+     Implicit(BASE value ): T(value) {}
+     Implicit() : T() {}
      int myTag() { return n; }
      void encode() { T::encode(); }
      BASE operator=(BASE t) { return T::operator=(t); }
index 8b710f215bc170f2d5a11302533e4781aa368586..598c029f7b737890a20436d80c5d6f3b4e16f448 100644 (file)
@@ -17,7 +17,7 @@ public:
         C &operator = (const C &x)
                 {
                 return *this;
-                };
+                }
         };
 
 C &(C::*DD)(const C &x) = &C::operator=;
index 3380685b18f8df24c7dffb54dd2b1884f0298685..724c6f5c320c2ed6221bbd7eabfeffcdb794a054 100644 (file)
@@ -10,7 +10,7 @@
 class test{
 public:
        int     flags;
-       test()  {};
+       test()  {}
        };
 
 int main()
index 36618047d918219b72967acc7e50eea0df683c92..0e8df404cb85052fbf0918da6630e64e9a8bd142 100644 (file)
@@ -5,7 +5,7 @@ class foo_int
 public:
   int & i;
 
-  foo_int (int &j) : i(j) {};
+  foo_int (int &j) : i(j) {}
   void inc () { i++; }
 
 };
index ae7b88f8b52f1ff75ceec7a7c7aa4b6fa62873e3..fc1b23b75b4b0530204ce615b971ea2db72cd85d 100644 (file)
@@ -2,7 +2,7 @@
 // GROUPS passed overloading
 typedef struct{double re,im;} complex;
 class Complex{public:double re,im;
-    inline void operator=(Complex&X){re=X.re; im=X.im;};};
+    inline void operator=(Complex&X){re=X.re; im=X.im;}};
 void zxcvbnm(int n,...){n=1;}
 int main(){complex c; Complex C;
 zxcvbnm(1,c);
index e522b794fd141c351807a6514eaf844a3b1622c6..bc5724985da05dc6d6b2cd7531380f61ecc0d7f4 100644 (file)
@@ -34,7 +34,7 @@ int aCallback<Called>::callback()
 
 struct myStruct
 {
-  int action() {return 24;};
+  int action() {return 24;}
 };
 
 int main()
index 665c7a425545e6437fb2ea0e4fde2426f2bb67f8..a65f818bd2c0aee92c02b2afb06fddb256a28f7e 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble  }
+// { dg-do compile  }
+// { dg-options "-Wall -Wextra" }
 // GROUPS passed warnings
 class K {
 public:
index 271ecf07873d15917643393e1bee01639857740b..16646438ed247a9595b35b3a22d40b6fae7d9cab 100644 (file)
@@ -13,7 +13,7 @@ struct myExcRaiser {
 };
 
 struct stackObj {
-  ~stackObj() { ++d; printf ("stackObj::~stackObj()\n"); };
+  ~stackObj() { ++d; printf ("stackObj::~stackObj()\n"); }
 };
 
 int test()
index aad2a0a1e5f34c3e66cc1a5f282ad78030d83782..aefe5cc618ed7be009344599d2b4b240b12ae08a 100644 (file)
@@ -5,7 +5,7 @@ extern "C" int printf (const char *, ...);
 
 struct E {
   int x;
-  E(int i) { x = i; };
+  E(int i) { x = i; }
 };
 
 int main()
index 748d37f1541642a48f748fa4abeea9c711207576..f151ed08d51e5affcec3329426e8694aa051116c 100644 (file)
@@ -13,8 +13,8 @@ static int ok = 0;
 
 struct A
 {
-  A (){};
-  virtual ~A () {};
+  A (){}
+  virtual ~A () {}
 };
 
 struct B : virtual A
index b7fbabc29a7d622b7db544e86468efdff4631b7d..ad19f96a13a0c00879b248888e3c3064c96cfc7b 100644 (file)
@@ -4,6 +4,6 @@ void Foo (void)
 {
   class C {
   public:
-    virtual int foo (void) { return 0; };
+    virtual int foo (void) { return 0; }
   };
 }
index 942e71485f1c975289d2da8a1a7a3320010f1ed6..40bf2a365284f07f32ee5ebbe5524d4abc2d39af 100644 (file)
@@ -8,7 +8,7 @@ class Char
 protected:
   char          rep;
 public:
-  Char (const char ) {};
+  Char (const char ) {}
   operator char() const;
   void  operator -= (const Char   );
 };
index 51137c11f6fafb41ade8c53665e723372c83f976..a918baab8d196529781b4b5a260e61faf585c0de 100644 (file)
@@ -2,7 +2,7 @@
 // PRMS Id: 5070 (testcase 1)
 
 struct foo {
-  foo(int x = 0) {};
+  foo(int x = 0) {}
   int IsAlive(void) { return 1; }
 };
 
index 1267fafbe4928008609b44e68769a2bd794a4d25..8fbda4fc14922656dc2b6578166186b788bded35 100644 (file)
@@ -4,7 +4,7 @@
 class X { // { dg-error "assignment" }
   int& a;
 public:
-  X(int& i): a(i) { };
+  X(int& i): a(i) { }
 };
 
 void foo ()
index 3708b21ec6a2bffb0cb3dc6595534a379766f532..2987ae51ada323e9c78aed96fd1123e4e5aaab4f 100644 (file)
@@ -2,6 +2,6 @@
 // Bug: g++ fails to catch the ambiguity below.
 
 struct A {
-  operator int () { return 1; };
-  operator int &() { return 1; }; // { dg-error "" } 
+  operator int () { return 1; }
+  operator int &() { return 1; } // { dg-error "" } 
 };
index c0752f785e6462a05bf0233dd1cff0f9752f7edb..5fa46391f16fdcc5618fbf6976254d5a66902317 100644 (file)
@@ -6,7 +6,7 @@ class Fu
 {
   int val;
 public:
-  Fu(int i) : val(i) { };
+  Fu(int i) : val(i) { }
   void print() { }
 };
 
index ec1ff7fbca906b3ac6d3d158b03257c3c1ca5867..03205345ddc022b34821dfae4612e58ab56b49ee 100644 (file)
@@ -31,7 +31,7 @@ int aCallback<Called>::callback()
 
 struct myStruct
 {
-  int action() {return 0;};
+  int action() {return 0;}
 };
 
 int main()
index b877a81c6342ac01747cb47e7e573fda6b9256df..35b7d8c43b220e50d541550cc1396b059c5ecef9 100644 (file)
@@ -3,7 +3,7 @@
 
 class Parent {
 public:
-  void DoSomething() { return; };
+  void DoSomething() { return; }
   int i;
 };
 
index c134134a0c58be261a5ae7618d971479393203ae..97dd51acf52cefd7b327e211e4c58c499610a306 100644 (file)
@@ -4,7 +4,7 @@
 
 struct A {};
 struct B {
-  virtual void foo () {};
+  virtual void foo () {}
 };
 struct C : public B, public A {};
 
index 4e60e39a0a99291d4108b2944b7dc884beccea75..6627fd1691192f9c4d2daabc0144c8cde0190aa7 100644 (file)
@@ -2,7 +2,7 @@
 // PRMS id: 10912
 
 struct A {
-  A() { i=10; };
+  A() { i=10; }
   int i;
 };
 struct B : public A {};
index cf80da130408e8d02970b546b47ed4a3e201a4a3..637e74b246ea873274fb41caedf837115b9f61af 100644 (file)
@@ -7,8 +7,8 @@ struct A
     struct B
     {
        int f;
-       B() : f(0) {};
-       void g() { f = 0; };
+       B() : f(0) {}
+       void g() { f = 0; }
     };
     void f();
     void f(int);
index e25fbce38d657424bb8b1c35720e96af450308c6..01485282e8918d299c0f23618e33728b03756edb 100644 (file)
@@ -11,5 +11,5 @@ private:
 
 class DbmItem: public RefCount{
 public:
-  DbmItem(): RefCount() {};
+  DbmItem(): RefCount() {}
 };
index e16ef7d6ccf4540302f8a601ac0932984cd4b5b8..a440397d7ae68ec79c8cbbb9f0a454b9a078c5e5 100644 (file)
@@ -29,13 +29,13 @@ void Test<T>::doThat()
 class A 
 { 
  public: 
-  void thiss() {}
+  void thiss() {}
 };
 
 class B
 { 
  public: 
-  void that() {}
+  void that() {}
 };
 
 int main() 
index 846c63a40b22bf374f75e18d232d6f0e95f631ee..af6072fd6b6465c9162d3ada09f7598afb5ab522 100644 (file)
@@ -7,7 +7,7 @@ class A
 public:
   enum muni {X, Y};
   
-  muni e() { return X; };
+  muni e() { return X; }
   muni f();
 };
 
index befa98a7cbe22db24e6553ac9b470c709ac9ec41..34c92d8ba8e9b7cd476c58f7d999df7931846fdc 100644 (file)
@@ -24,15 +24,15 @@ public:
 class C: public A, public B
 {
 public:
-  virtual void a2() {};
-  virtual void b2() {};
+  virtual void a2() {}
+  virtual void b2() {}
 };
 
 class D : public C
 {
 public:
-  virtual void a1() {};
-  virtual void b1() {};
+  virtual void a1() {}
+  virtual void b1() {}
 };
 
 int main()
index e1f4359972b21ae84f962683091d73a429154813..cba10f2807e6ecf24baeec93e359cc9c8164ca61 100644 (file)
@@ -16,7 +16,7 @@ class VObject {
     boolean perform(method );
     boolean perform(method , long);
     void    affectMethod(method );
-    void    dummy(){};
+    void    dummy(){}
 };
 
 
index 9ac3060173bf6c148fe138982c060a1a264f60be..0a992d0b9e8910dc09ae8d63e96a1db17756c531 100644 (file)
@@ -70,7 +70,7 @@ class Vector
        Vector( int, double *, int beg = 0 );
        Vector( const Vector & );
        Vector &operator=( const Vector & );
-       ~Vector() { if(r) r->unrefer(); };
+       ~Vector() { if(r) r->unrefer(); }
 
        int row() const { return 19; }
        int dim() const { return 10; }
index a630f9db4aa3a04c7cf023f91c90bad135b5b3b5..16262842fe87ab89f1feac09b92d14d8931b2b36 100644 (file)
@@ -8,19 +8,19 @@ class bla {
 
 public:
 
-        inline bla(const char * jim) { ; };
+        inline bla(const char * jim) { ; }
 
-        inline ~bla() { destruct++; if (destruct == 2) printf ("PASS\n");};
+        inline ~bla() { destruct++; if (destruct == 2) printf ("PASS\n");}
 };
 
 class ulk {
 
 public:
 
-        inline ulk() {};
-        inline ~ulk() {};
+        inline ulk() {}
+        inline ~ulk() {}
 
-        void funk(const bla & bob) { ;};
+        void funk(const bla & bob) { ;}
              //       ^ interestingly, the code compiles right if
              //         this & is deleted (and therefore the parameter
              //         passed as value)
index 8c712b810cd469ddecc03cc93ae3277da7c5faae..470e6f6b56709eec078080db433d6ae935bd78b7 100644 (file)
@@ -15,5 +15,5 @@ class T {
 class T2 {
       friend void f (int& i)  { // BOGUS - 
       i = 1;
-   };
+   }
 };
index 3275b225ad121a51a58c661aabc5d62c72d30b34..9f81bb4513b09b9346df5e69c121c94913fbc560 100644 (file)
@@ -15,7 +15,7 @@ class Traversable {
 public:
     virtual const T item() const = 0;
     virtual const bool off() const = 0;
-    virtual ~Traversable() { };
+    virtual ~Traversable() { }
 };
 
 class Chain : public Traversable {
@@ -47,7 +47,7 @@ protected:
     virtual void go_offright() const = 0;
     virtual void copy(const List& other) = 0;
 public:
-    List() : item_count(0), cursor_position(0) { };
+    List() : item_count(0), cursor_position(0) { }
     virtual const int count() const;
     virtual const bool empty() const;
     virtual const bool isfirst() const;
@@ -105,7 +105,7 @@ protected:
     virtual void copy(const List& other);
 public:
     Fixed_List(const List& other);
-    Fixed_List(const int size): Array(1, size) { };
+    Fixed_List(const int size): Array(1, size) { }
     virtual const bool empty() const;
     virtual const int count() const;
     virtual const T item() const;
@@ -113,7 +113,7 @@ public:
     virtual void move(const int index) const;
     virtual void put(const T value);
     virtual void put_i_th(const T value, const int index);
-    virtual void wipe_out() { };
+    virtual void wipe_out() { }
     Fixed_List& operator=(const List& other);
 };
 
index 715f7c1aede9db539d9cb57e6509ce0b31ec8f99..c9707beb194467849119a807d4cf4a8c73912ef8 100644 (file)
@@ -15,5 +15,5 @@ class B: public A {
   public:
     B () {
         !(A::j);
-    };
+    }
 };
index d0aa92169d0ae1456675cabea0c0c4febec9ef47..87e50941d455c84dd1d40abf2c69b3c8d2bbfa3e 100644 (file)
@@ -18,7 +18,7 @@ struct fcell {
 class FStack {
 public:
         struct fcell *top;
-        FStack() { top = NULL ; } ;
+        FStack() { top = NULL ; }
         inline void push(FILE * fd1, int line_num, char *fname = NULL) {
                 struct fcell *tmp = new struct fcell;
                 tmp->fd = fd1;
index c760039e0b138eeb3237e6a792df0227591f7323..fc623b4fc26b55c980ff7c79a9201636ed950d92 100644 (file)
@@ -14,7 +14,7 @@ class Vector {
   int           size;
   Complex       *v;
  public:
-  Vector(int s=1) { size = s; v = new Complex[size];};
+  Vector(int s=1) { size = s; v = new Complex[size];}
   ~Vector() { delete [size] v;}// { dg-error "" }  warning
 };
 
index e18bddebb63b1f1b65b8aeb1ab390a985228b8a4..8dcb74fa64f924feb025244909ee7c994600f69b 100644 (file)
@@ -19,7 +19,7 @@ public:
 class l
 {
 public:
-  void s() {};
+  void s() {}
 };
 
 extern t<l> g;
@@ -28,5 +28,5 @@ class p
 {
 public:
   void *h;
-  s *a() {return (s *) h;};
+  s *a() {return (s *) h;}
 };
index 8d53194913f2e1407112c12a070137c42ab1d05d..5988d19f8102974e98452a996266e6818c5f8345 100644 (file)
@@ -11,12 +11,12 @@ void f()
 {
         {
                 struct A {
-                        A() {};
+                        A() {}
                 } a;
         };
         {
                 struct A {
-                        A() {};
+                        A() {}
                 } a ;
         };
 }
index 08a0f949e2a9087c318bc90ec89d2844919350a1..5d7428c1bb584e24063fdf257f5bf8cfa1b54123 100644 (file)
@@ -12,7 +12,7 @@ class doubleclass
 {
        public:
                double  d;
-               doubleclass(double x = 0)       { d = x; };
+               doubleclass(double x = 0)       { d = x; }
 };
 
 class test
index 02bfb2e5dfe375ea76da342c17d320c195c14ec0..1c786feb9d14cd82c05ca50eb724e4925be886a7 100644 (file)
@@ -8,17 +8,17 @@ class base {
 //==========
 
     void base_priv(const char * n)             
-       { std::cout << "base_priv called from: " << n << "\n";  };
+       { std::cout << "base_priv called from: " << n << "\n";  }
 
 protected:
 
     void base_prot(const char * n) 
-       { std::cout << "base_prot called from: " << n << "\n"; };
+       { std::cout << "base_prot called from: " << n << "\n"; }
 
 public:
 
     void base_publ(const char * n) 
-       { std::cout << "base_publ called from: " << n << "\n"; };
+       { std::cout << "base_publ called from: " << n << "\n"; }
 
     void test(const char * n) { base_publ(n); base_prot(n); base_priv(n); }
 
index 6b6e3d35f5dc56498f2e588f65096c7921b004db..23505f63095d5113fb0455aaf3bec3fe4143caeb 100644 (file)
@@ -5,8 +5,8 @@
 
 class base {
 public:
-  void f1 () { std::cout << "f1" << std::endl; };
-  void f2 () { std::cout << "f2" << std::endl; };
+  void f1 () { std::cout << "f1" << std::endl; }
+  void f2 () { std::cout << "f2" << std::endl; }
 };
 
 class deriv : public base {
index 42d267368ce5dc324a977b547f0c51405f34dac1..539169639c3c470a0124281cc26e949be000fa1b 100644 (file)
@@ -8,17 +8,17 @@ class base {
 //==========
 
     void base_priv(const char * n)             
-       { std::cout << "base_priv called from: " << n << "\n";  };
+       { std::cout << "base_priv called from: " << n << "\n";  }
 
 protected:
 
     void base_prot(const char * n) 
-       { std::cout << "base_prot called from: " << n << "\n"; };
+       { std::cout << "base_prot called from: " << n << "\n"; }
 
 public:
 
     void base_publ(const char * n) 
-       { std::cout << "base_publ called from: " << n << "\n"; };
+       { std::cout << "base_publ called from: " << n << "\n"; }
 
     void test(const char * n) { base_publ(n); base_prot(n); base_priv(n); }
 
index 2a19c25afe77a9986a472ff234861f5b43418361..7f346058ba97b0e290af53905fab7d8444efc9e1 100644 (file)
@@ -21,5 +21,5 @@ extern "C" int printf( const char *, ...);
 class E : public C {
         void f() {
                 printf( "%d\n", b);// { dg-error "" } .*
-        };
+        }
 };
index 430bb740deedfa1a4035be778d0203d74d738e1b..dab95a6fc2c79bdaaf04737b68eb93fde1a3751e 100644 (file)
@@ -10,7 +10,7 @@ struct a
 
 struct b
 {
-    virtual void g() { };
+    virtual void g() { }
 };
 
 struct c: public a, public b
index a23dfbc5d57e0c5f3dfc43988a1430acf1278067..35f3bca40399f495ffa2c83efd872e1c4543e0d2 100644 (file)
@@ -17,7 +17,7 @@ typedef void (D::*DPROC)(void);
 union AFX_PMSG {
 public:
 
-  AFX_PMSG () {};
+  AFX_PMSG () {}
   AFX_PMSG ( BPROC bpr ) { bfn = bpr ; }
 
   operator BPROC() { return bfn; }
index 733e5ec7f3c390a46958013e6b6b573054d602b6..991a793e5ea7341abc1c6d0b55f48a3883df931b 100644 (file)
@@ -5,8 +5,8 @@ extern "C" int printf (const char *, ...);
 
 class myFoundation {
 protected:
-  myFoundation () { count = 0; };
-  virtual ~myFoundation () {};
+  myFoundation () { count = 0; }
+  virtual ~myFoundation () {}
 
 public:
   void addRef () { ++count; }
@@ -19,8 +19,8 @@ private:
 
 class firstIntermediate :virtual public myFoundation {
 public:
-  firstIntermediate () {};
-  ~firstIntermediate () {};
+  firstIntermediate () {}
+  ~firstIntermediate () {}
 
   void bar () { printf ("Bar\n"); }
 };
@@ -28,58 +28,58 @@ public:
 
 class firstBase        :  public firstIntermediate {
 public:
-  firstBase () {};
-  ~firstBase () {};
+  firstBase () {}
+  ~firstBase () {}
 
-  virtual void g () {};
+  virtual void g () {}
 };
 
 
 class secondIntermediate : virtual public myFoundation {
 public:
-  secondIntermediate () {};
-  ~secondIntermediate () {};
+  secondIntermediate () {}
+  ~secondIntermediate () {}
 
-  virtual void h () {};
+  virtual void h () {}
 };
 
 
 class secondBase : public secondIntermediate {
 public:
-  secondBase () {};
-  ~secondBase () {};
+  secondBase () {}
+  ~secondBase () {}
 
-  virtual void h () {};
+  virtual void h () {}
 };
 
 
 class typeInterface : virtual public firstBase {
 public:
-  typeInterface () {};
-  ~typeInterface () {};
+  typeInterface () {}
+  ~typeInterface () {}
 
-  virtual void i () {};
+  virtual void i () {}
 };
 
 class classServices : virtual public firstBase,
                      public secondBase {
 public:
-  classServices () {};
-  ~classServices () {};
+  classServices () {}
+  ~classServices () {}
 
-  virtual void j () {};
+  virtual void j () {}
 };
 
 class classImplementation : public typeInterface,
                            public classServices {
 public:
-  classImplementation () {};
-  ~classImplementation () {};
+  classImplementation () {}
+  ~classImplementation () {}
 
-  void g () {};
-  void h () {};
-  void i () {};
-  void j () {};
+  void g () {}
+  void h () {}
+  void i () {}
+  void j () {}
 };
 
 int main () {
index 9cb8fb84b92937caf7f4a1fadbda82cc7058cb88..7765ec1eaca0482e384d2fe9370cc4640ba8fe95 100644 (file)
@@ -5,7 +5,7 @@ extern "C" int printf (const char *, ...);
 class A
 {
 public:
-  virtual ~A(){};
+  virtual ~A(){}
   virtual int type(void)
   {
     return -1;
@@ -15,7 +15,7 @@ public:
 class B
 {
 public:
-  virtual ~B(){};
+  virtual ~B(){}
 };
 
 
index bbecdd8d8a4273df2f5f2cb6e21e1122d7072c0c..807803f0a949df6b9e6be86c8c28d84067234bd0 100644 (file)
@@ -12,9 +12,9 @@ struct link {
     link *prev;
 
     link(const T& t): item(t), prev(0), next(0)
-       { };
+       { }
     link(const T& t, link<T> *p, link<T> *n): item(t), prev(p), next(n)
-       { };
+       { }
 };
 
 template<class T>
@@ -182,9 +182,9 @@ template<class T>
 class List_DLS: public List_DL<T> {
 public:
     List_DLS(): List_DL<T>()
-       { };
+       { }
     List_DLS(const List_DLS& other): List_DL<T>(other)
-       { };
+       { }
 
     bool contains(const T& item) const
        { return search(item) != 0 ? TRUE: FALSE; }
@@ -206,9 +206,9 @@ template<class T>
 class List_DLSp: public List_DL<T> {
 public:
     List_DLSp(): List_DL<T>()
-       { };
+       { }
     List_DLSp(const List_DLSp& other): List_DL<T>(other)
-       { };
+       { }
 
     bool contains(const T& item) const
 #ifndef INTERNAL_ERROR
@@ -335,9 +335,9 @@ struct vertex {
     List_DL<vertex<T> *> fanout;
 
     vertex(): item(), fanout() // { dg-bogus "" } 
-      { };
+      { }
     vertex(const T& i): item(), fanout() // { dg-bogus "" } 
-      { };
+      { }
 };
 
 template<class T>
index 78ce6b472f566f55f2d3cfb809d08dd8b4583d6d..e8502d5358e170b294e600ec47548b60a1e1b3c5 100644 (file)
@@ -4,17 +4,17 @@
 extern "C" int printf(const char *, ...);
 
 struct A {
-   void print() {printf("A");};
+   void print() {printf("A");}
 };
 
 struct B :  A {
    typedef A superB;
-   void print() {superB::print(); printf("B");};
+   void print() {superB::print(); printf("B");}
 };
 
 struct C :  B {
    typedef B superC;
-   void print() {superC::print(); printf("C");};
+   void print() {superC::print(); printf("C");}
 };
 
 int main ()
index af9b386032660348896c9ae7afebc27822018c34..25348f4635f2d71bb364d09b7355eae4c3b901ca 100644 (file)
@@ -5,7 +5,7 @@ int bad;
 
 class A {
 public:
-  virtual void dummy (){};
+  virtual void dummy (){}
 };
 
 class B {
@@ -15,12 +15,12 @@ public:
 
 class C : public A, public B {
 public:
-  void f(void) { bad=1; };
+  void f(void) { bad=1; }
 };
 
 class D : public C {
 public:
-  void f(void) { };
+  void f(void) { }
 };
 
 class E : public D { };
index fa429205e590075a0aa2c4eadb0195fddd218289..792fc1d807c31e1c5932687f771d8962eb0bb976 100644 (file)
@@ -6,9 +6,9 @@ void *vp = 0;
 
 class ParentOne {
 public:
-  ParentOne() {};
+  ParentOne() {}
 #ifdef MAKE_WORK
-  virtual ~ParentOne() {};
+  virtual ~ParentOne() {}
 #endif
 private:
   char SomeData[101];
@@ -16,8 +16,8 @@ private:
 
 class ParentTwo {
 public:
-  ParentTwo() {};
-  virtual ~ParentTwo() {};
+  ParentTwo() {}
+  virtual ~ParentTwo() {}
 private:
   int MoreData[12];
   virtual int foo() { return 0; }
index cd173c3e4e10ab1242aeb09093a7d4b449a0c2c7..b5c180658439e8281f58dfc969c98c583ee97356 100644 (file)
@@ -5,7 +5,7 @@ int main(void)
 {
   struct B
     {
-      virtual void b1() { };
+      virtual void b1() { }
     };
 
   return 0;
index f021d9503fd36f715382a3a775588108c2d19cbe..d0acbb9bdab9ee80ef96948c34c7bd0441f8e99d 100644 (file)
@@ -4,7 +4,7 @@
 class Base {
   int i;
 public:
-  Base() { i = 42; };
+  Base() { i = 42; }
 };
 
 
@@ -17,8 +17,8 @@ public:
 
 class Derived : public Base, public Mixin {
 public:
-  Derived() { };
-  Derived & operator=(Mixin & m) { return *this; };
+  Derived() { }
+  Derived & operator=(Mixin & m) { return *this; }
 };
 
 
index bc380dba692229e1d7c875229fe51df61bbad8af..ab9ead011c00f04bcb7c619ab777b117f7ea9698 100644 (file)
@@ -4,8 +4,8 @@ typedef int (A::*f_ptr) (void);
 
 class B {
 public:
-  B() {}; ~B() {};
-  B& dummy(f_ptr cb) { return *this; };
+  B() {} ~B() {}
+  B& dummy(f_ptr cb) { return *this; }
 };
 
 template<class SP, class CB> SP& call_dummy(SP* sp, CB cb) {
@@ -15,12 +15,12 @@ template<class SP, class CB> SP& call_dummy(SP* sp, CB cb) {
 
 class A {
 public:
-  A() {}; ~A() {};
-  int ok() { return 0; };
+  A() {} ~A() {}
+  int ok() { return 0; }
   A& call_it(B* s) {
     call_dummy(s, &A::ok);
     return *this;
-  };
+  }
 };
 
 int main() {
index 72ad999de1e7d04c5c559012c0aa89126c5f8c95..e030fee9d8bd1f90b51e6d2d2eb0cff229d1bb3f 100644 (file)
@@ -3,7 +3,7 @@
 class B {
 public:
   int Bi;
-  virtual int g() { return  0; };
+  virtual int g() { return  0; }
 };
 
 class D : private B {
index 1907c42526e6563cf8ce7a6b287edfa2d6e6d677..5aa5b1ed6653ba7a48b2afb1df5aaea25fd3d250 100644 (file)
@@ -6,7 +6,7 @@ struct S {
     ++i;
     if (i == 3)
       throw 3;
-  };
+  }
 
   S () {}
 
index fcea96714c8e879349130e603333820b7c7ba917..5c1b6657786ef6f5c918a79261c09a6db0b88b91 100644 (file)
@@ -4,10 +4,10 @@ int i;
 struct S {
   S () {
     ++i;
-  };
+  }
 
   S (int) {
-  };
+  }
 };
 
 int main()
index ed6c0af9f12d5c2f4d72902ec5b99c583eaf9143..4bf7adbf5e20dae59e241f685c762d49a5dea6f2 100644 (file)
@@ -24,7 +24,7 @@ struct baz : filler1, bar, filler2
 struct foo : filler3, virtual baz, filler4
 {
     static void a();
-    void b() {};
+    void b() {}
     int m;
 };
 
index d4d61d25b4439f15e28217f102d53a6945c630d6..e20fa034f7d6efa96325ecce69282a614a3c514b 100644 (file)
@@ -16,7 +16,7 @@ struct S {
 
 struct T {
   void g (S) {
-  };
+  }
 };
 
 struct U {
index 582cf10d59fd397b8c62cd91405e1f0f05c28b40..6feec30e630a858474b0f0b2fa0724b3ec6110bb 100644 (file)
@@ -96,7 +96,7 @@ test03 ()
 
 // 2. crosscast
 
-struct J {virtual ~J(){};};
+struct J {virtual ~J(){}};
 struct K : CC, private J {}; 
 class KK : J, CC{};
                
index 8cf6ba0fde4399ef2c86f4606132182865eefeb8..bea82cb46918f440f0e2cd9a4a9343e3948e1845 100644 (file)
@@ -19,7 +19,7 @@ void error(int i)
 // 1. downcast
 // 1.1 single inheritance case
 
-struct A {virtual ~A(){};int i;};
+struct A {virtual ~A(){} int i;};
 struct B : A {int i;};
 struct C : B {int i;};
 struct CC : C {};
index 621a0511a81084d8ad88b0f4a028335833fda140..999e2943a5d00097f5c49ba7a23ee1471e560bd9 100644 (file)
@@ -3,10 +3,10 @@
 
 class foo {
 public:
-  foo() {};
+  foo() {}
   void throwMe () {
     throw *this;                // { dg-error "" } cannot be used in throw-expression
-  };
+  }
   virtual void test () = 0;
 };
 
index 7a91a12d7df43e874d5748b7387b02d3b27746b0..a68c557d3003d21b9a12a6b67f76cc689743d594 100644 (file)
@@ -15,8 +15,8 @@ static int cnt = 0;
 class Foo2
 {
        public:
-               Foo2() {};
-               ~Foo2() { if (++cnt == 2) _exit (0); };
+               Foo2() {}
+               ~Foo2() { if (++cnt == 2) _exit (0); }
 };
 
 static Foo2& GetFoo2()
@@ -29,7 +29,7 @@ class Foo1
 {
        public:
                Foo1() {}
-               ~Foo1() { if (++cnt != 1) abort(); GetFoo2(); };
+               ~Foo1() { if (++cnt != 1) abort(); GetFoo2(); }
 };
 
 int main( int argc, const char* argv[] )
index 3bea89d3fdfbad4f9895bf5281a8b9253a0d00f6..843756841fd03392fee53ce926df092f4402b297 100644 (file)
@@ -12,7 +12,7 @@ struct A
       p = new T[size];
       int foo;
       foo = 5 * size;
-    };
+    }
 };
 
 struct B
index 93491fa317607afb0ac558288829c7afe81673d1..59457e18fa5729355a6cf38743b840462c063f16 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do run  }
-struct T { ~T() {}; };
+struct T { ~T() {} };
 
 int g ()
 {
index b7af77a44ca959a7d40f01ce7f1ce232b3492558..2e6adde02f3fea0f36b66dc5cd15106c142690f5 100644 (file)
@@ -23,7 +23,7 @@ struct baz : filler1, bar, filler2
 struct foo : filler3, virtual baz, filler4
 {
     static void a();
-    void b() {};
+    void b() {}
     int m;
 };
 
index 00afd2431d4e6919f73db1b26b55a6f03c591200..17741049dbdd81c1cf754d5fb38e7183ebe61759 100644 (file)
@@ -1,9 +1,9 @@
 // { dg-do link  }
 struct foo
 {
-  foo() {};
-  ~foo() {};
-  void func() { static foo x; };
+  foo() {}
+  ~foo() {}
+  void func() { static foo x; }
 };
 
 int main()
index 9ae8568256d31d4c9b13ed96d7879314bb70bb1d..07cf68b0abf3452dc4bc553b00847bc69a2f9d43 100644 (file)
@@ -2,7 +2,7 @@
 
 class A {
 protected:
-  static void f() {};
+  static void f() {}
 };
 
 class B : A {
index 93f4536d7e6b8c4e5de282640ffb83ce8d413497..51bd79ab9755a1142cbf4ff0edbbaefa5432ec84 100644 (file)
@@ -40,7 +40,7 @@ template<typename X> struct auto_ptr {
 };
 
 struct Base { Base() {} virtual ~Base() {} };
-struct Derived : Base { Derived() {}; };
+struct Derived : Base { Derived() {} };
 
 auto_ptr<Derived> f() { auto_ptr<Derived> null(0); return null; }
 void g(auto_ptr<Derived>) { }
index 9e159613da1a577399050ede1e3724d6a84760aa..09e57d1d3124efc64c8597d3e76f3fd17f3049ad 100644 (file)
@@ -9,7 +9,7 @@ void f()
     void g() {
       C e;
       e.c = 3;
-    };
+    }
   };
 
   S s;
index ac16b40e5b867b2e5a45ac7ff05d50cc61d783ee..bfdddaeaa1a779f51d696e7a3e41847318afa1a4 100644 (file)
@@ -2,7 +2,7 @@
 // Origin: Leon Bottou <leonb@research.att.com>
 
 class AA { protected:
-  template <class T> struct BB { T x; BB(const T &x) : x(x) { }; };
-  template <class T> struct CC : public BB<T> { CC(const T &x) : BB<T>(x) { };
+  template <class T> struct BB { T x; BB(const T &x) : x(x) { } };
+  template <class T> struct CC : public BB<T> { CC(const T &x) : BB<T>(x) { }
 };
 };
index 67314b850bf5fdc24cd1d2dab0d337c68484c3de..4e37971cdf233bad7ded9e4144f60eb4c14dad7a 100644 (file)
@@ -5,7 +5,7 @@ template <class T>
 struct A
 {
  public:
-  ~A() { };
+  ~A() { }
 
   class B;
 };
index f8ead86c1d9bd246d9cdaac54bb70f4e8113b346..851032ab3d75979801301c78639059c1b94d1741 100644 (file)
@@ -11,7 +11,7 @@ private:
     } val;
     val.i = x;
     return val.c;
-  };
+  }
 
 public:
   b()  {
index 50b29c61dc148b61835c96a4849a2b85ac6efd8c..8d622ef6f2eb62be69ecf390fd477d275cdb792c 100644 (file)
@@ -18,7 +18,7 @@ class PK_FixedLengthEncryptor : public virtual PK_Encryptor, public virtual PK_F
 class PK_SignatureSystem
 {
 public:
-       virtual ~PK_SignatureSystem() {};
+       virtual ~PK_SignatureSystem() {}
 };
 class PK_Signer : public virtual PK_SignatureSystem
 {
index 7d410b7f18805157f484fc46d208162e284e46c2..2678cf78a7d56008adf229d2d9eaddd79ca5481f 100644 (file)
@@ -13,7 +13,7 @@ typedef int F();
 
 template<class T, typename A<T>::F f>
 struct B {
-static int g() { return f(); };
+static int g() { return f(); }
 };
 
 int f() { return 0; }
index c992eafb9bab064618802453bd0cc5984bba274c..9da3d32e2f851f8a2559443b2e1661e613f795b1 100644 (file)
@@ -7,8 +7,8 @@ template <int N> struct A {
 };
 
 template <int N> struct B {
-  B () { };
-  B (const A<N> &) { };
+  B () { }
+  B (const A<N> &) { }
   B (const A<N-1> &, int);
 };
 
index 55bb9ff06d44e04d778601574e5c194d9d881eec..bf9489e857ed158cb002da3f39c462f2ddcb3fe9 100644 (file)
@@ -13,7 +13,7 @@ int r = 1;
 
 struct A
 {
-  void f(){};
+  void f(){}
   A(){ ++r; }
   ~A(){ r -= 2; _exit (r); }
 };
index 60a442ceed8081f14252a25d73fa5ca3637233fa..d91774c76fc52be512fa3b50174f54f2507368d2 100644 (file)
@@ -2,7 +2,7 @@
 
 class Base {
 public:
-  class Bar { public: virtual ~Bar() {}; };
+  class Bar { public: virtual ~Bar() {} };
 };
 
 class Derived : public Base {
index b812554e38cf90d0656396154a77b2bf3f6d90b9..a542b447e6e9b11f525e9ba6e5616cf979c62362 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdarg.h>
 
 struct A {
-  virtual ~A () {};
+  virtual ~A () {}
 };
 
 template <class Type>
index b9424793e06a906c531dff28ff005f4dba25f778..be5973a52de62be206f3ebfdf39d06be2e262bdd 100644 (file)
@@ -11,7 +11,7 @@ private:
     } val;
     val.i = x;
     return val.c;
-  };
+  }
 
 public:
   b()  {
index 65c71babfc7e8ac51123bb53f03cd007b769c69d..b43f21a7fa4409318d3e171e163199c67ef3c1a6 100644 (file)
@@ -14,7 +14,7 @@ public:
 //  friend int f();
     static int x;
   public:
-    static int f() {return foo::f();};
+    static int f() {return foo::f();}
    };
 };
 
index 0818f7ce169a4cf95997d10c4eee24b44ae15e7e..0d9b474d9e5b07a3657b82534b568d0e0ce139f1 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do assemble  }
 class Base {
 public:
-  class Bar { public: virtual ~Bar() {}; };
+  class Bar { public: virtual ~Bar() {} };
 };
 
 class Derived : public Base {
index 74912c1bd869d6f47a71fbc19a92cbfd1f7260d2..5355afe4e56a32b186069fe53608041575b929a9 100644 (file)
@@ -13,8 +13,8 @@ using namespace std;
 template <class T> class Expr 
 {
 public :
-  Expr(){};
-  Expr(const T&){};
+  Expr(){}
+  Expr(const T&){}
 };
 
 template <class T >
index 0a233d358f029090b10aa45abb1c65da8ec310c7..cbe482e90b8060489dec70f2a12de2f380c9c53e 100644 (file)
@@ -4,7 +4,7 @@
 class A1 {
         friend class B;
  public:
-        virtual void foo() {};
+        virtual void foo() {}
 };
 
 class A2 : public virtual A1 {friend class B;};
@@ -14,7 +14,7 @@ class A3 : public virtual A1, private A2 {friend class B;};
 class B
 {
  public:
-        B(A1* a) : itsA(dynamic_cast<A2*>(a)) {};
+        B(A1* a) : itsA(dynamic_cast<A2*>(a)) {}
         A2* itsA;
 };
 
index bcd3a3dba85a8d5bdd2601962c17b55d362598b6..abfe9face03292f783b455ac7e64c76cdb6b001b 100644 (file)
@@ -23,7 +23,7 @@ private:
     val.i = x;
     std::swap(val.c[0], val.c[1]);
     return val.i;
-  };
+  }
 
   _eb91_int16_t change_endian(_eb91_int16_t x)
   {
@@ -34,7 +34,7 @@ private:
     val.i = x;
     std::swap(val.c[0], val.c[1]);
     return val.i;
-  };
+  }
 public:
   other_endian(const INT i = 0)
   {
index 7863be844a5b16db8ec8a9192fb51492d8c97d0f..51fbabdc2d49b612f925030b32f5fb3ccdf35670 100644 (file)
@@ -29,14 +29,14 @@ void bar1 ()
 struct B
 {
   void mwibble ()
-  {};
+  {}
   void mwobble ()
-  {};                       // { dg-bogus "" } cannot inline
+  {}                        // { dg-bogus "" } cannot inline
   
   static void swibble ()
-  {};
+  {}
   static void swobble ()
-  {};                       // { dg-bogus "" } cannot inline
+  {}                        // { dg-bogus "" } cannot inline
 };
 
 void bar (void (B::*)());
@@ -60,7 +60,7 @@ void bar3 (B *b)
 struct C
 {
   virtual void vwobble ()
-  {};                               // { dg-bogus "" } cannot inline
+  {}                                // { dg-bogus "" } cannot inline
 };
 
 void bar4 ()