Boost C++ Libraries: Ticket #6071: Boost Test (Boost 1.46.0) GCC 4.6.1 error: ambiguous overload for ‘operator[]’ https://svn.boost.org/trac10/ticket/6071 <p> Compiling my project unit tests and getting the following error (used to compile with older GCC (4.4?)): </p> <pre class="wiki"> /usr/include/boost/test/impl/debug.ipp: In function ‘std::string boost::debug::set_debugger(boost::unit_test::const_string, boost::debug::dbg_starter)’: /usr/include/boost/test/impl/debug.ipp:737:46: error: ambiguous overload for ‘operator[]’ in ‘boost::debug::{anonymous}::s_info.boost::debug::{anonymous}::info_t::m_dbg_starter_reg[boost::debug::{anonymous}::s_info.boost::debug::{anonymous}::info_t::p_dbg]’ compilation terminated due to -Wfatal-errors. Here is my machine info: $ cat /etc/redhat-release Fedora release 15 (Lovelock) $ g++ --version g++ (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9) $ yum list installed | fgrep boost boost.x86_64 1.46.0-3.fc15 @updates boost-build.noarch 1.46.0-3.fc15 @updates boost-date-time.x86_64 1.46.0-3.fc15 @updates boost-devel.x86_64 1.46.0-3.fc15 @updates boost-doc.noarch 1.46.0-3.fc15 @updates boost-filesystem.x86_64 1.46.0-3.fc15 @updates boost-graph.x86_64 1.46.0-3.fc15 @updates boost-graph-mpich2.x86_64 1.46.0-3.fc15 @updates boost-iostreams.x86_64 1.46.0-3.fc15 @updates boost-jam.x86_64 1.46.0-3.fc15 @updates boost-mpich2.x86_64 1.46.0-3.fc15 @updates boost-program-options.x86_64 1.46.0-3.fc15 @updates boost-python.x86_64 1.46.0-3.fc15 @updates boost-random.x86_64 1.46.0-3.fc15 @updates boost-regex.x86_64 1.46.0-3.fc15 @updates boost-serialization.x86_64 1.46.0-3.fc15 @updates boost-signals.x86_64 1.46.0-3.fc15 @updates boost-static.x86_64 1.46.0-3.fc15 @updates boost-system.x86_64 1.46.0-3.fc15 @updates boost-test.x86_64 1.46.0-3.fc15 @updates boost-thread.x86_64 1.46.0-3.fc15 @updates boost-wave.x86_64 1.46.0-3.fc15 @updates </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6071 Trac 1.4.3 anonymous Sat, 29 Oct 2011 22:58:37 GMT <link>https://svn.boost.org/trac10/ticket/6071#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6071#comment:1</guid> <description> <p> BTW, I am using c++0x settings. </p> <p> Here are all my g++ flags: -fmessage-length=0 -pedantic-errors -Wall -Wextra -Wconversion -Wcast-qual -Wcast-align -Wwrite-strings -Wlogical-op -Wfatal-errors -std=c++0x -g </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Mon, 05 Nov 2012 00:57:48 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6071#comment:2 https://svn.boost.org/trac10/ticket/6071#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81179" title="making operator unambiguous; Fixes #6071">[81179]</a>) making operator unambiguous; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6071" title="#6071: Bugs: Boost Test (Boost 1.46.0) GCC 4.6.1 error: ambiguous overload for ... (closed: fixed)">#6071</a> </p> Ticket Raffi Enficiaud Tue, 07 Jul 2015 08:27:46 GMT milestone changed https://svn.boost.org/trac10/ticket/6071#comment:3 https://svn.boost.org/trac10/ticket/6071#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> Ticket