[proto]Compile issue on Sun Solaris 10, Sun Studio 12.2

Hello,
I got an error from the Sun Studio 12.2 (CC 5.11) when trying to compile
my sources.
The error comes out of the Boost.Proto library (actually I'm doing
something with Boost.Spirit and Boost.Spirit is using Boost.Proto ...,
but I don't think that the problem is in the client code, it seems to
come from the buggy compiler). I'm using Boost 1.43.
This is what I got from the compiler:
"...include/boost/proto/detail/decltype.hpp", line 343: Error: Partial
specialization parameter V is not used in the arguments.
"...include/boost/proto/transform/arg.hpp", line 287: Error: Partial
specialization for boost::proto::_byval::result has identical arguments.
"...include/boost/proto/extends.hpp", line 600: Error: type is not a
member of boost::result_ofboost::proto::domainns_::default_domain.
"...include/boost/spirit/home/support/terminal.hpp", line 237: Where:
While specializing
"boost::proto::exprns_::extends

On 10/5/2010 9:13 AM, Sascha Ochsenknecht wrote:
Hello,
I got an error from the Sun Studio 12.2 (CC 5.11) when trying to compile my sources. The error comes out of the Boost.Proto library (actually I'm doing something with Boost.Spirit and Boost.Spirit is using Boost.Proto ..., but I don't think that the problem is in the client code, it seems to come from the buggy compiler). I'm using Boost 1.43.
This is what I got from the compiler:
"...include/boost/proto/detail/decltype.hpp", line 343: Error: Partial specialization parameter V is not used in the arguments.
Can you try replacing the definition of result_of_ in decltype.hpp with
the following:
template<typename T>
struct sun_workaround_helper
{
typedef T type;
};
template

Am 10/06/10 01:36, schrieb Eric Niebler:
On 10/5/2010 9:13 AM, Sascha Ochsenknecht wrote:
Hello,
I got an error from the Sun Studio 12.2 (CC 5.11) when trying to compile my sources. The error comes out of the Boost.Proto library (actually I'm doing something with Boost.Spirit and Boost.Spirit is using Boost.Proto ..., but I don't think that the problem is in the client code, it seems to come from the buggy compiler). I'm using Boost 1.43.
This is what I got from the compiler:
"...include/boost/proto/detail/decltype.hpp", line 343: Error: Partial specialization parameter V is not used in the arguments.
Can you try replacing the definition of result_of_ in decltype.hpp with the following:
Sorry, it doesn't work. I get:
"...include/boost/proto/detail/decltype.hpp", line 348: Error: Partial
specialization parameter U is not used in the arguments.
"...include/boost/proto/detail/decltype.hpp", line 348: Error: Partial
specialization parameter V is not used in the arguments.
"...include/boost/proto/detail/decltype.hpp", line 380: Error: Too many
arguments for template boost::proto::detail::get_pointerns::result_of_.
"...include/boost/proto/detail/decltype.hpp", line 380: Error: Partial
specialization parameter V is not used in the arguments.
"...include/boost/proto/transform/arg.hpp", line 287: Error: Partial
specialization for boost::proto::_byval::result has identical arguments.
"...include/boost/proto/extends.hpp", line 600: Error: type is not a
member of boost::result_ofboost::proto::domainns_::default_domain.
"...include/boost/spirit/home/support/terminal.hpp", line 237:
Where: While specializing
"boost::proto::exprns_::extends

Sorry, there is a little mistake in the decltype.hpp file I sent this
morning. Attached here it is corrected.
But the result is still the same:
template

On 10/6/2010 8:48 AM, Sascha Ochsenknecht wrote:
Sorry, there is a little mistake in the decltype.hpp file I sent this morning. Attached here it is corrected.
But the result is still the same: <snip>
Sorry, I can't help you then. Someone with access to this compiler (and knowledge of its quirks) needs to get it working and submit a patch. -- Eric Niebler BoostPro Computing http://www.boostpro.com
participants (2)
-
Eric Niebler
-
Sascha Ochsenknecht