[Boost-bugs] [Boost C++ Libraries] #7825: boost::spirit::qi::int_parser<mpz_class> fails to compile on g++ 4.7.2

Subject: [Boost-bugs] [Boost C++ Libraries] #7825: boost::spirit::qi::int_parser<mpz_class> fails to compile on g++ 4.7.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-23 18:15:49


#7825: boost::spirit::qi::int_parser<mpz_class> fails to compile on g++ 4.7.2
--------------------------------------------------+-------------------------
 Reporter: Andras Kucsma <r0maikx02b@…> | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 boost::spirit::qi::int_parser<mpz_class> fails to compile with g++ 4.7.2
 in C++11 mode.[[BR]]
 It compiles successfully with g++ 4.6.3 and clang revision 170460.[[BR]]
 ( [http://gmplib.org/ GMP] version is 5.0.5. )

 Here's a program which reproduces the problem:
 {{{

 #include <gmpxx.h>
 #include <boost/spirit/include/qi.hpp>

 struct MyGrammar : boost::spirit::qi::grammar<const char*> {
 public:

         MyGrammar() : MyGrammar::base_type(integerRule) {
                 integerRule %= integerParser;
         }

         boost::spirit::qi::rule<const char*> integerRule;
         boost::spirit::qi::int_parser<mpz_class> integerParser;
 };

 int main() {}

 }}}



 It compiled with:[[BR]]
 g++-4.7 -Wall -Wextra -pedantic bin/main.cpp -o main.o[[BR]]
 g++-4.6 -std=c++0x -Wall -Wextra -pedantic bin/main.cpp -o main.o[[BR]]
 clang++ -std=c++11 -Wall -Wextra -pedantic bin/main.cpp -o main.o[[BR]]

 It failed to compile with:[[BR]]
 g++-4.7 -std=c++11 -Wall -Wextra -pedantic bin/main.cpp -o main.o[[BR]]

 Error output: http://pastebin.com/154hhVDn

 This is might be a problem in gcc, but I think this information is not
 sufficient for a gcc bug report.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7825>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC