c++: Fix spelling of non-static
authorMarek Polacek <polacek@redhat.com>
Thu, 7 May 2020 12:41:54 +0000 (08:41 -0400)
committerMarek Polacek <polacek@redhat.com>
Thu, 7 May 2020 17:25:14 +0000 (13:25 -0400)
commitd20b71735eef2ea807d74252f78bba10f93b268c
treeeb5c3b943d6fbc298618abd928027021198b857d
parent5438a28a050f8ecea1352134047efeff5111b603
c++: Fix spelling of non-static

I was looking at DR 296 and noticed that we say "nonstatic" instead of
"non-static", which is the version the standard uses.  So this patch
fixes the spelling throughout the front end.  Did not check e.g.
non-dependent or any other.

* decl.c (grok_op_properties): Fix spelling of non-static.
* typeck.c (build_class_member_access_expr): Likewise.

* g++.dg/other/operator1.C: Adjust expected message.
* g++.dg/overload/operator2.C: Likewise.
* g++.dg/template/error30.C: Likewise.
* g++.old-deja/g++.jason/operator.C: Likewise.
13 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cxx-pretty-print.c
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/search.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/operator1.C
gcc/testsuite/g++.dg/overload/operator2.C
gcc/testsuite/g++.dg/template/error30.C
gcc/testsuite/g++.old-deja/g++.jason/operator.C