From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26369 invoked by alias); 12 Sep 2011 13:28:30 -0000 Received: (qmail 26356 invoked by uid 22791); 12 Sep 2011 13:28:29 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Sep 2011 13:28:15 +0000 From: "howarth at nitro dot med.uc.edu" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00825.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50365 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=3D25248 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=3D0 -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/intV= ar -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 =E2=80=98XplorSimulation::XplorSimulatio= n(bool)=E2=80=99: xplorSimulation.cc:53:26: error: cannot call member function =E2=80=98Xplor= Vars* XplorSimulation::xplorVars()=E2=80=99 without object /Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: inval= id use of non-static data member =E2=80=98XplorSimulation::scriptingIndex_=E2= =80=99 xplorSimulation.cc:54:6: error: from this location /Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: inval= id use of non-static data member =E2=80=98XplorSimulation::scriptingIndex_=E2= =80=99 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=20 -DX_MMAP_FLAGS=3D0 -DFORTRAN_INIT -fno-common -DDARWIN -D_REENTRANT -DNDEB= UG -DCPLUSPLUS -DUSE_CDS_NAMESPACExplorSimulation.cc: In constructor =E2=80=98XplorSimulation::XplorSimulation(bool)=E2=80=99:xplorSimulation.cc= :53:26: error: cannot call member function =E2=80=98XplorVars* XplorSimulation::xplorVars(= )=E2=80=99 without object/Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: invalid use of non-static data member =E2=80=98XplorSimulation::scriptingIn= dex_=E2=80=99 xplorSimulation.cc:54:6: error: from this location /Users/howarth/xplor-nih-2.27/common/xplorSimulation.hh:138:7: error: inval= id use of non-static data member =E2=80=98XplorSimulation::scriptingIndex_=E2= =80=99 xplorSimulation.cc:56:7: error: from this location Is this behavior expected or shouldn't this new error be suppressible with = the -fpermissive flag?