This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53549] [4.7/4.8 Regression] g++ and armadillo 3.2.0, operator() is inaccessible


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

--- Comment #10 from Conrad <conradsand.arma at gmail dot com> 2012-07-10 07:22:00 UTC ---
Created attachment 27769
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27769
arma323.ii.gz

Retested with gcc 4.7.1 and Armadillo 3.2.3 (latest upstream version).

This time a related but different bug in GCC is exposed.
arma323.ii.gz is the attached pre-processed source.

Code compiles fine on gcc 4.4.6 and clang 3.0.

/usr/local/bin/g++ arma323.cpp -o arma323 -O2 -Wall -pedantic

In file included from /usr/include/armadillo:141:0,
                 from arma323.cpp:2:
/usr/include/armadillo_bits/Mat_bones.hpp:545:26: error: no members matching
âarma::Mat<eT>::operator=â in âclass arma::Mat<eT>â
/usr/include/armadillo_bits/Mat_bones.hpp:546:27: error: no members matching
âarma::Mat<eT>::operator()â in âclass arma::Mat<eT>â
In file included from /usr/include/armadillo:142:0,
                 from arma323.cpp:2:
/usr/include/armadillo_bits/Col_bones.hpp:175:27: error: no members matching
âarma::Col<eT>::operator()â in âclass arma::Col<eT>â
In file included from /usr/include/armadillo:143:0,
                 from arma323.cpp:2:
/usr/include/armadillo_bits/Row_bones.hpp:173:27: error: no members matching
âarma::Row<eT>::operator()â in âclass arma::Row<eT>â


GCC 4.7.1 was compiled directly from sources, using GCC 4.7.0 on a Fedora 17
machine.

/usr/local/bin/g++ -v

Using built-in specs.
COLLECT_GCC=/usr/local/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure
Thread model: posix
gcc version 4.7.1 (GCC)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]