Commit 10e1540c by Nathan Sidwell Committed by Nathan Sidwell

[C++ PATCH] cleanup check_field_decls

https://gcc.gnu.org/ml/gcc-patches/2019-11/msg00012.html
	cp/
	* class.c (check_field_decls): Refactor.

	testsuite/
	* g++.dg/template/fn.C: New.

From-SVN: r277707
parent 9de3d4f0
2019-11-01 Nathan Sidwell <nathan@acm.org>
* class.c (check_field_decls): Refactor.
2019-10-31 Jakub Jelinek <jakub@redhat.com> 2019-10-31 Jakub Jelinek <jakub@redhat.com>
PR c++/90947 PR c++/90947
......
2019-11-01 Nathan Sidwell <nathan@acm.org>
* g++.dg/template/fn.C: New.
2019-11-01 Kewen Lin <linkw@gcc.gnu.org> 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
PR testsuite/92127 PR testsuite/92127
......
// instantiation cannot turn a data member into a function!
typedef int (frib) (int);
template <typename T> class X
{
T v; // { dg-error "declared function" }
};
X<frib> v;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment