This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50365] [4.7 Regression] non-static data member error on valid code


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]