Opened 9 years ago

Closed 8 years ago

#9785 closed Bugs (fixed)

Compiler warning with intel icc in boost/move/core.hpp(73)

Reported by: Alexander Mai <alexander.mai@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: move
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

A simple source file

#include <boost/tr1/unordered_map.hpp>

triggers a warning with intel C compiler 12.0.0:

boost_1_55_0/boost/move/core.hpp(73): warning #1292: attribute "__may_alias__" ignored
     } BOOST_MOVE_ATTRIBUTE_MAY_ALIAS;
       ^

The online documentation for this warning is quite sparse:http://software.intel.com/en-us/articles/cdiag1292

I try to enforce warning=error which is not possible with a warning.

I only found #6062 as a reference, but the solution there did not affect this warning obviously.

Change History (2)

comment:1 by viboes, 9 years ago

Component: Nonemove
Owner: set to Ion Gaztañaga

comment:2 by Ion Gaztañaga, 8 years ago

Resolution: fixed
Status: newclosed

Thanks for the report. Fixed in develop:

SHA-1: 388b71d333aacc67aba6d3a49147ff4c647abace

  • Fixed Trac #9785: Compiler warning with intel icc in boost/move/core.hpp

I haven't found a clear indication about Intel 13 compatibility with may_alias, but I have enabled it for version 13. Future reports will tell use if this is correct.

Note: See TracTickets for help on using tickets.