Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#11924 closed Bugs (duplicate)

MSVC 12: boost\type_traits\common_type.hpp(42): fatal error C1001:

Reported by: dkabrane@… Owned by: John Maddock
Milestone: Component: type_traits
Version: Boost 1.60.0 Severity: Problem
Keywords: variadic template, template aliases, MSVC 12 Cc:

Description

Boost 1.60 with Visual 2013 results in a compiler error :

boost\type_traits\common_type.hpp(42): fatal error C1001: An internal error has occurred in the compiler.

It happens with Template Aliases and Variadic Templates.

Visual 2013 version is 18.00.21005.1 (and we cannot update it cause of our clients), we have to add in boost/config/user.hpp the following line :

#if defined _MSC_VER
# if _MSC_FULL_VER < 180021006
#  define DTK_BOOST_NO_CXX11_TEMPLATE_ALIASES
# endif
#endif

Attachments (2)

user.hpp (5.4 KB ) - added by anonymous 6 years ago.
user.2.hpp (5.4 KB ) - added by anonymous 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by John Maddock, 7 years ago

Resolution: duplicate
Status: newclosed

This duplicates: https://svn.boost.org/trac/boost/ticket/11885

I realise you're stuck with VC12, but can you not use the latest patch release to that toolset, as everything works fine with version 18.00.31101 ?

comment:2 by dkabrane@…, 7 years ago

Unfortunately we cannot apply the latest patch for this version, since some of our clients are stuck with this version, it means us too.

However we found a workaround like I said earlier in the ticket. Thanks though.

by anonymous, 6 years ago

Attachment: user.hpp added

by anonymous, 6 years ago

Attachment: user.2.hpp added
Note: See TracTickets for help on using tickets.