This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50365] [4.7 Regression] non-static data member error on valid code
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Sep 2011 23:15:17 +0000
- Subject: [Bug c++/50365] [4.7 Regression] non-static data member error on valid code
- Auto-submitted: auto-generated
- References: <bug-50365-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50365
--- Comment #7 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-09-13 23:15:17 UTC ---
At r176120 which fixed PR49691, the test case from Comment 4, begins to fail in
the current mode...
[MacPro:~] howarth% /Users/howarth/dist/bin/g++ -c test.cc
test.cc: In constructor âXplorSimulation::XplorSimulation()â:
test.cc:17:26: error: cannot call member function âXplorVars*
XplorSimulation::xplorVars()â without object
r176120 | jason | 2011-07-10 10:24:03 -0400 (Sun, 10 Jul 2011) | 5 lines
PR c++/49691
* parser.c (cp_parser_late_return_type_opt): Check quals parameter
rather than current_class_type to determine whether to set 'this'.
(cp_parser_direct_declarator): Pass -1 to quals if member_p is false.
(cp_parser_init_declarator): Pass down member_p.