[Bug c++/50365] [4.7 Regression] non-static data member error on valid code
howarth at nitro dot med.uc.edu
gcc-bugzilla@gcc.gnu.org
Tue Sep 13 23:09:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list