Re: [eigen] Re: We need help on issue #91 from MSVC 2010 users |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Re: We need help on issue #91 from MSVC 2010 users
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sun, 7 Nov 2010 19:15:05 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=CPWCPYpBIhB/ExAUO48W2cQBPII5sJ1KgK38bGCzIZA=; b=KPspTXBdHjE9RZoju29IOz6+7vNGqIN06i/PlqM/YM1APf/qlP3lwoFCfoyKOCkEu7 shEaP4n5LbInI9NvL4vU8A7DUbPU/gCwiOhRkthw8NqFchZBVPw+CP/XNb9qnTpZqjYf OygnfFuiXpw9a02tClrcPFvZdM2mwsBKWjH2E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=R/7T0Kw2fwjQcJvPUWxMx5Kthlt0ntutjgQBSdQhqIPzOow8WdJUNh+CjVbAlaxKNd S2ePucm+e7XVo24n6chzFuE3DBycIgTv4iNHpCeYFOnX9J/1Tt9ItZWXsvg6dzT7P9yK zsNDvTvdl4PqNll52mk0fNfTTVG9Z0aKZsZC8=
Thinking about it, this looks like a hash collision. Like, the
compiler stores all template specializations (for all templates) in a
single big hash map, and eventually with a lib like eigen that does
lots of template specializations, some collision happens causing two
unrelated template specializations to be mixed up.
If that's the case, assuming that the hash values are generated from
the c++ names, just making a tiny change to any c++ name involved
should fix it. Does it go away when you rename
matrix_type_times_scalar_type to
matrix_type_times_scalar_type_braindeadmsvc ?
Benoit
2010/11/4 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> Just as a side note. It seems most likely if not obvious that this is
> a compiler bug. Of course, a workaround would still be nice!
>
> - Hauke
>
>
>