Boost logo

Boost :

Subject: Re: [boost] [Phoenix] lambda_tests.test fails on gcc 4.3-4.8 with BOOST_RESULT_OF_USE_DECLTYPE
From: Eric Niebler (eric_at_[hidden])
Date: 2012-10-07 13:55:51

On 10/7/2012 12:04 AM, Michel Morin wrote:
> Eric Niebler :
>>> I ran Phoenix test-suite on * clang 3.1, 3.2 (trunk) * gcc 4.4-4.7,
>>> 4.8 (experimental) with * C++03, C++11 +
>>> The only failure is lambda_tests.test (i.e.
>>> scope/lambda_tests.cpp) on gcc 4.4-4.7 with C++11 +
>>> BOOST_RESULT_OF_USE_DECLTYPE. Is this caused by deficiency of N3276
>>> decltype support?
>> I don't know. Maybe Thomas can have a look. I tried to understand the
>> code for Phoenix lambda and broke my brain. :-P This test also fails
>> on msvc when BOOST_RESULT_OF_USE_DECLTYPE is defined.
> I did additional tests: on clang 2.8-3.0 in a C++11 mode with
> BOOST_RESULT_OF_USE_DECLTYPE, lambda_tests.test also failed.

It could be related to support for N3276, but it's hard to say.

> During the tests, I found that runtime errors (BOOST_TEST failures) happen
> in some tests (e.g. scope/let_tests.cpp) when compiling them with
> optimization flag (-O2 or -O3) on both gcc (except gcc 4.5) and clang.
> The runtime failures happen both in C++03 and C++11 modes.
> I don't know if this is related to Boost.Proto, but I report this here
> just in case.

You should file this as a Phoenix bug.

Eric Niebler
BoostPro Computing

Boost list run by bdawes at, gregod at, cpdaniel at, john at