re PR c++/48280 ([C++0x] ICE: tree check: expected var_decl or function_decl, have...
authorJason Merrill <jason@redhat.com>
Thu, 31 Mar 2011 20:29:49 +0000 (16:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 31 Mar 2011 20:29:49 +0000 (16:29 -0400)
commitc454d74afcf58585beddb8d300f77d615d65330c
tree9dd79a48dc3f7fecf3b4b267e73084419d3d3637
parent4e36c2131fcffc92881baa8dca67c868574bfacb
re PR c++/48280 ([C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695)

PR c++/48280
* method.c (defaultable_fn_check): Templates are not defaultable.

From-SVN: r171797
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/defaulted24.C [new file with mode: 0644]