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)