Opened 13 years ago

Closed 13 years ago

#4061 closed Bugs (fixed)

[MPL] gcc-4.5 compilation problems related to arity_helper

Reported by: sefi@… Owned by: Aleksey Gurtovoy
Milestone: Boost 1.43.0 Component: mpl
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

arity_helper isn't fully qualified which triggers ADL and may instantiate templates we don't want. Please see the following (invalid) gcc bugreport that contains a test case.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43608

Attachments (1)

gcc-4.5-mpl-1.42.0.patch (1.2 KB ) - added by sefi@… 13 years ago.
Proposed fix

Download all attachments as: .zip

Change History (3)

by sefi@…, 13 years ago

Attachment: gcc-4.5-mpl-1.42.0.patch added

Proposed fix

comment:1 by Eric Niebler, 13 years ago

the real fix would be to patch mpl/aux_/template_arity.hpp and regenerate the preprocessed files. I'm not sure how to do that. Aleksey?

comment:2 by Hartmut Kaiser, 13 years ago

Resolution: fixed
Status: newclosed

(In [61467]) MPL: fixed #4061: gcc-4.5 compilation problems related to arity_helper, applied attached patch to the main aux_/template_arity.hpp and regenerated the corresponding file preprocessed/gcc/template_arity.hpp. No other preprocessed files are affected.

This patch seemed to be fine as all it does is to qualify an internal name in order to avoid it being looked up through ADL. This appears to be reasonably safe as this name is internal and not supposed to be found using ADL in the first place.

Note: See TracTickets for help on using tickets.