public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53549] New: g++ and armadillo 3.2.0, operator() is inaccessible
@ 2012-06-01 10:11 admin at toffyrn dot net
  2012-06-01 10:30 ` [Bug c++/53549] " jakub at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: admin at toffyrn dot net @ 2012-06-01 10:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53549

             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 trying
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 Linux.
The bug is not present in gcc 4.6.3.


===============
Test program:
[toffyrn@bohr Test]$ cat main.cpp 
#include <armadillo>

int main(int argc, char** argv)
{
    arma::ivec3 jjj;

    return 0;
}

================
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 ‘class
arma::Col<int>::fixed<3u>’:
main.cpp:5:17:   required from here
/usr/include/armadillo_bits/Col_meat.hpp:512:1: error: ‘const
arma::subview_col<eT> arma::Col<eT>::operator()(const arma::span&) const’ 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: ‘arma::subview_col<eT>
arma::Col<eT>::operator()(const arma::span&)’ 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


================
GCC version:
[toffyrn@bohr Test]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.7-20120505/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id
--with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold
--enable-ld=default --enable-plugin --with-plugin-ld=ld.gold
--with-linker-hash-style=gnu --disable-multilib --disable-libssp
--disable-build-with-cxx --disable-build-poststage1-with-cxx
--enable-checking=release
Thread model: posix
gcc version 4.7.0 20120505 (prerelease) (GCC)


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-07-23  5:26 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-01 10:11 [Bug c++/53549] New: g++ and armadillo 3.2.0, operator() is inaccessible admin at toffyrn dot net
2012-06-01 10:30 ` [Bug c++/53549] " jakub at gcc dot gnu.org
2012-06-01 10:39 ` admin at toffyrn dot net
2012-06-01 13:28 ` conradsand.arma at gmail dot com
2012-06-12  9:00 ` conradsand.arma at gmail dot com
2012-06-12  9:19 ` [Bug c++/53549] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-06-12  9:42 ` conradsand.arma at gmail dot com
2012-06-12 10:33 ` redi at gcc dot gnu.org
2012-06-12 10:39 ` redi at gcc dot gnu.org
2012-06-12 12:17 ` jakub at gcc dot gnu.org
2012-06-14 21:25 ` fabien at gcc dot gnu.org
2012-07-10  7:22 ` conradsand.arma at gmail dot com
2012-07-17 18:10 ` jason at gcc dot gnu.org
2012-07-17 19:29 ` jason at gcc dot gnu.org
2012-07-17 19:30 ` jason at gcc dot gnu.org
2012-07-17 19:30 ` jason at gcc dot gnu.org
2012-07-23  5:26 ` conradsand.arma at gmail dot com

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).