This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11506] SFINAE fails sometimes


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]