public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50365] New: invalid use of non-static data member not suppressed by -fpermissive Date: Mon, 12 Sep 2011 13:32:00 -0000 [thread overview] Message-ID: <bug-50365-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50365 Bug #: 50365 Summary: invalid use of non-static data member not suppressed by -fpermissive Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: howarth@nitro.med.uc.edu Created attachment 25248 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25248 preprocessed source file for common/xplorSimulation.cc Current gcc trunk produces the compile time error (not present in gcc 4.6 or earlier) when compiling common/xplorSimulation.cc from xplor-nih 2.27... [MacPro:~/xplor-nih-2.27/common/bin.Darwin_11_x86_64] howarth% g++-fsf-4.7 -c xplorSimulation.cc -O3 -ffast-math -funroll-loops -g -DX_MMAP_FLAGS=0 -DFORTRAN_INIT -fno-common -DDARWIN -D_REENTRANT -DNDEBUG -I/Users/howarth/xplor-nih-2.27/common/ -I/Users/howarth/xplor-nih-2.27/arch/Darwin_11_x86_64/include -I/Users/howarth/xplor-nih-2.27/CDSlib -I/Users/howarth/xplor-nih-2.27/intVar -I/Users/howarth/xplor-nih-2.27/pcre -DCPLUSPLUS -DUSE_CDS_NAMESPACE -I/Users/howarth/xplor-nih-2.27/common/ -I/Users/howarth/xplor-nih-2.27/arch/Darwin_11_x86_64/include xplorSimulation.cc: In constructor ‘XplorSimulation::XplorSimulation(bool)’: xplorSimulation.cc:53:26: error: cannot call member function ‘XplorVars* XplorSimulation::xplorVars()’ without object /Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: invalid use of non-static data member ‘XplorSimulation::scriptingIndex_’ xplorSimulation.cc:54:6: error: from this location /Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: invalid use of non-static data member ‘XplorSimulation::scriptingIndex_’ xplorSimulation.cc:56:7: error: from this location which isn't suppressed with -fpermissive... [MacPro:~/xplor-nih-2.27/common/bin.Darwin_11_x86_64] howarth% g++-fsf-4.7 -c xplorSimulation.ii -O3 -ffast-math -funroll-loops -g -fpermissive -DX_MMAP_FLAGS=0 -DFORTRAN_INIT -fno-common -DDARWIN -D_REENTRANT -DNDEBUG -DCPLUSPLUS -DUSE_CDS_NAMESPACExplorSimulation.cc: In constructor ‘XplorSimulation::XplorSimulation(bool)’:xplorSimulation.cc:53:26: error: cannot call member function ‘XplorVars* XplorSimulation::xplorVars()’ without object/Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: invalid use of non-static data member ‘XplorSimulation::scriptingIndex_’ xplorSimulation.cc:54:6: error: from this location /Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: invalid use of non-static data member ‘XplorSimulation::scriptingIndex_’ xplorSimulation.cc:56:7: error: from this location Is this behavior expected or shouldn't this new error be suppressible with the -fpermissive flag?
next reply other threads:[~2011-09-12 13:28 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-09-12 13:32 howarth at nitro dot med.uc.edu [this message] 2011-09-12 13:47 ` [Bug c++/50365] " howarth at nitro dot med.uc.edu 2011-09-12 14:27 ` redi at gcc dot gnu.org 2011-09-12 14:28 ` [Bug c++/50365] non-static data member error on valid code redi at gcc dot gnu.org 2011-09-12 14:44 ` [Bug c++/50365] [4.7 Regression] " redi at gcc dot gnu.org 2011-09-12 14:48 ` redi at gcc dot gnu.org 2011-09-13 23:09 ` howarth at nitro dot med.uc.edu 2011-09-13 23:16 ` redi at gcc dot gnu.org 2011-09-13 23:57 ` howarth at nitro dot med.uc.edu 2011-09-15 14:15 ` jason at gcc dot gnu.org 2011-09-15 14:35 ` jason at gcc dot gnu.org 2011-09-15 14:36 ` jason at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-50365-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).