This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11506] SFINAE fails sometimes
- From: "dave at boost-consulting dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2003 03:25:46 -0000
- Subject: [Bug c++/11506] SFINAE fails sometimes
- References: <20030712032254.11506.dave@boost-consulting.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11506
------- Additional Comments From dave at boost-consulting dot com 2003-07-12 03:25 -------
Created an attachment (id=4392)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4392&action=view)
preprocessed source
The enclosed ought to compile, but instead I get:
c:/boost/boost/iterator/transform_iterator.hpp: In instantiation of
`boost::transform_iterator<int (*)(int), int *, boost::use_default,
boost::use_default>':
c:/boost/boost/iterator/transform_iterator.hpp:127: no type named `type' in
`boost::detail::enable_if<boost::mpl::not_<boost::is_pointer<int (*)(int)>
>, char>'
Note that there's no instantiation backtrace! Very strange.
Compile command:
g++ -fmessage-length=0 -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline
-I "c:\boost" -o
"bin\transform_iterator_test.test\gcc\debug\runtime-link-dynamic\transform_iterator_test.obj"
"transform_iterator_test.cpp"