semantics.c (finish_non_static_data_member): In diagnostic, give error at point of...
authorJason Merrill <jason@redhat.com>
Mon, 22 Sep 2014 19:22:37 +0000 (15:22 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 22 Sep 2014 19:22:37 +0000 (15:22 -0400)
commit6863c41a15ac58554cd413c1dcde9f43d9dba4c0
tree55293012afed93cc887dd441e91cd85b8989baab
parenta546927c6a9a06b25ae85f8206b2c7afc53f4a45
semantics.c (finish_non_static_data_member): In diagnostic, give error at point of use and note at point of declaration.

* semantics.c (finish_non_static_data_member): In diagnostic, give
error at point of use and note at point of declaration.

From-SVN: r215479
14 files changed:
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice3.C
gcc/testsuite/g++.dg/lookup/scoped8.C
gcc/testsuite/g++.dg/other/ptrmem2.C
gcc/testsuite/g++.dg/template/dependent-expr5.C
gcc/testsuite/g++.dg/template/error15.C
gcc/testsuite/g++.dg/template/error42.C
gcc/testsuite/g++.old-deja/g++.brendan/crash18.C
gcc/testsuite/g++.old-deja/g++.brendan/nest1.C
gcc/testsuite/g++.old-deja/g++.brendan/static1.C
gcc/testsuite/g++.old-deja/g++.bugs/900213_01.C
gcc/testsuite/g++.old-deja/g++.gb/scope06.C
gcc/testsuite/g++.old-deja/g++.law/cvt11.C