From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19399 invoked by alias); 1 Jun 2012 10:11:09 -0000 Received: (qmail 19384 invoked by uid 22791); 1 Jun 2012 10:11:07 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_DC 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; Fri, 01 Jun 2012 10:10:54 +0000 From: "admin at toffyrn dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53549] New: g++ and armadillo 3.2.0, operator() is inaccessible Date: Fri, 01 Jun 2012 10:11: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: major X-Bugzilla-Who: admin at toffyrn dot net 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: 2012-06/txt/msg00019.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53549 Bug #: 53549 Summary: g++ and armadillo 3.2.0, operator() is inaccessible Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: admin@toffyrn.net Compiling my project using armadillo fails with `is inaccessible' when tryi= ng to use fixed size vectors, for example `ivec3'. Armadillo is version 3.2.0 from http://arma.sourceforge.net/ The bug is seen in both gcc 4.7.0 and gcc-snapshot 4.8.20120520, on Arch Li= nux. The bug is not present in gcc 4.6.3. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Test program: [toffyrn@bohr Test]$ cat main.cpp=20 #include int main(int argc, char** argv) { arma::ivec3 jjj; return 0; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Error: [toffyrn@bohr Test]$ g++ main.cpp -o run -larmadillo In file included from /usr/include/armadillo:399:0, from main.cpp:1: /usr/include/armadillo_bits/Col_bones.hpp: In instantiation of =E2=80=98cla= ss arma::Col::fixed<3u>=E2=80=99: main.cpp:5:17: required from here /usr/include/armadillo_bits/Col_meat.hpp:512:1: error: =E2=80=98const arma::subview_col arma::Col::operator()(const arma::span&) const=E2= =80=99 is inaccessible In file included from /usr/include/armadillo:142:0, from main.cpp:1: /usr/include/armadillo_bits/Col_bones.hpp:113:9: error: within this context In file included from /usr/include/armadillo:399:0, from main.cpp:1: /usr/include/armadillo_bits/Col_meat.hpp:500:1: error: =E2=80=98arma::subvi= ew_col arma::Col::operator()(const arma::span&)=E2=80=99 is inaccessible In file included from /usr/include/armadillo:142:0, from main.cpp:1: /usr/include/armadillo_bits/Col_bones.hpp:113:9: error: within this context =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D GCC version: [toffyrn@bohr Test]$ g++ -v Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapp= er Target: x86_64-unknown-linux-gnu Configured with: /build/src/gcc-4.7-20120505/configure --prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=3Dposix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-p= ch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=3Disl --enable-lto --enable-gold --enable-ld=3Ddefault --enable-plugin --with-plugin-ld=3Dld.gold --with-linker-hash-style=3Dgnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=3Drelease Thread model: posix gcc version 4.7.0 20120505 (prerelease) (GCC)