re PR c++/49298 ([C++0x] sorry, unimplemented: unexpected ast of kind field_decl)
authorJason Merrill <jason@redhat.com>
Mon, 6 Jun 2011 19:42:38 +0000 (15:42 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 6 Jun 2011 19:42:38 +0000 (15:42 -0400)
commita651bcbe5e945d5e6f4f9597b400040bed984460
tree20c63c275e104aef2fceb40d5a70bb2a7680e8c6
parent4de4b0f267380846df53edeea0afdcb383fd4d8f
re PR c++/49298 ([C++0x]  sorry, unimplemented: unexpected ast of kind field_decl)

PR c++/49298
* semantics.c (potential_constant_expression_1): Handle FIELD_DECL.

From-SVN: r174721
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/ptrmem1.C [new file with mode: 0644]