This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53549] New: g++ and armadillo 3.2.0, operator() is inaccessible
- From: "admin at toffyrn dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Jun 2012 10:10:53 +0000
- Subject: [Bug c++/53549] New: g++ and armadillo 3.2.0, operator() is inaccessible
- Auto-submitted: auto-generated
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)
- Follow-Ups:
- [Bug c++/53549] g++ and armadillo 3.2.0, operator() is inaccessible
- From: jakub at gcc dot gnu.org
- [Bug c++/53549] g++ and armadillo 3.2.0, operator() is inaccessible
- From: admin at toffyrn dot net
- [Bug c++/53549] g++ and armadillo 3.2.0, operator() is inaccessible
- From: conradsand.arma at gmail dot com
- [Bug c++/53549] g++ and armadillo 3.2.0, operator() is inaccessible
- From: conradsand.arma at gmail dot com
- [Bug c++/53549] [4.7/4.8 Regression] g++ and armadillo 3.2.0, operator() is inaccessible
- From: rguenth at gcc dot gnu.org
- [Bug c++/53549] [4.7/4.8 Regression] g++ and armadillo 3.2.0, operator() is inaccessible
- From: conradsand.arma at gmail dot com
- [Bug c++/53549] [4.7/4.8 Regression] g++ and armadillo 3.2.0, operator() is inaccessible
- From: redi at gcc dot gnu.org
- [Bug c++/53549] [4.7/4.8 Regression] g++ and armadillo 3.2.0, operator() is inaccessible
- From: redi at gcc dot gnu.org
- [Bug c++/53549] [4.7/4.8 Regression] g++ and armadillo 3.2.0, operator() is inaccessible
- From: jakub at gcc dot gnu.org
- [Bug c++/53549] [4.7/4.8 Regression] g++ and armadillo 3.2.0, operator() is inaccessible
- From: fabien at gcc dot gnu.org