DR 1207 PR c++/49003
authorJason Merrill <jason@redhat.com>
Wed, 29 Jun 2011 21:19:31 +0000 (17:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 29 Jun 2011 21:19:31 +0000 (17:19 -0400)
commit417ae187142e16f8c697d68495614ca07e947636
tree75c88014994e59c28429b6a5dced3b345cb8ed38
parent3fe98897323ab6672dcfb765272fbdb2bdab1015
DR 1207 PR c++/49003

DR 1207
PR c++/49003
* cp-tree.h (struct saved_scope): Add x_current_class_ptr,
x_current_class_ref.
(current_class_ptr, current_class_ref): Use them.
* decl.c (build_this_parm): Handle getting the class type.
* parser.c (cp_parser_late_return_type_opt): Set up 'this'
for use within the trailing return type.

From-SVN: r175671
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr45908.C
gcc/testsuite/g++.dg/cpp0x/trailing6.C [new file with mode: 0644]