Boost logo

Boost :

Subject: Re: [boost] [typeof] Weird VC++ compiler bug
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-05-23 09:45:05


On 5/23/2015 8:12 AM, Rob Stewart wrote:
> On May 22, 2015 2:57:26 PM EDT, Edward Diener <eldiener_at_[hidden]> wrote:
>> On 5/22/2015 11:24 AM, Steven Watanabe wrote:
>>> AMDG
>>>
>>> On 05/22/2015 08:02 AM, Edward Diener wrote:
>>>> I discovered a strange VC++ bug using Boost.typeof. I am not
>> posting
>>>> this to rag VC++ but wondering if there is some known workaround in
>>>> Boost or in Boost.config.
>>>>
>>>
>>> The workaround for most weird Boost.Typeof errors
>>> is BOOST_TYPEOF_NESTED_TYPEDEF_TPL.
>>
>> Thanks !
>>
>> I saw that macro and saw the mention in the doc of "deconfusing
>> several
>> compilers (notably VC7.1 and VC8.0) on the way", and could not get it
>> into my head that this could still be a problem with VC12. Of course I
>> should have tried it.
>>
>> Oh Microsoft ! What's a little bug that you refuse to fix for at least
>> a decade and counting.
>
> Isn't the problem the lack of two-phase lookup in that compiler?

Considering that in my example which fails the class template never gets
instantiated it does not seem that the lack of two-phase lookup should
cause such an error. But whatever... Microsoft has a well-known system
in place by which they decide that known bugs should not be fixed if
they don't think it is important enough to do so.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk