http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50365
--- Comment #5 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-09-13 22:54:56 UTC --- Test case from Comment 4 compiles fine at r175670, but fails at r175671 with... [MacPro:~] howarth% /Users/howarth/dist/bin/g++ -c test.cc test.cc: In constructor ‘XplorSimulation::XplorSimulation()’: test.cc:17:27: internal compiler error: in cp_parser_late_return_type_opt, at cp/parser.c:15558 (PR49691)... r175671 | jason | 2011-06-29 17:19:31 -0400 (Wed, 29 Jun 2011) | 8 lines 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.