Subject: Re: [boost] concept_check() fails for types from unnamed namespace on gcc 4.2.3
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-11-19 03:33:29
On Tuesday 19 November 2013 08:27:41 Adam Romanek wrote:
> Dear Boosters!
> I already posted this message to boost-users lists last week but I got
> no response. So here we are.
> I have a problem compiling some source code that uses Boost 1.54 and gcc
> 4.2.3 (it's a toolchain for a MIPS platform but that's irrelevant).
> Basically there is a problem with checking concepts on types that come
> from unnamed namespaces. See the attached code example and compiler
> error message. Note that the same code compiles without any problems on
> gcc 4.6.3.
> I've found a question on boost-dev list  and a ticket  related to
> this particular issue. Note that the ticket was closed with "worksforme"
> resolution, which I don't understand - the problem is still out there.
> Now since Boost's minimal requirements are gcc 3.3  then should I
> consider it a bug that I should report or is it a known issue? In case
> the latter is true then what should I do?
Not sure that this particular problem is triggered by the same bug I
experienced , but I'd say anonymous namespaces are quite broken in gcc 4.2.
I'm not aware of any workaround other than just replace the anonymous
namespace with a named one and a using declaration.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk