[Bug c++/14284] New: v3.4 regression: Failure to select obvious template specialisation

s_gccbugzilla at nedprod dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 25 01:49:00 GMT 2004


GCC v3.4 CVS 20040218: Obviously the zero based specialisation should be chosen 
here, not an ambiguous choice error. It even says so itself:

g++ -fPIC -Wformat -Wno-reorder -Wno-non-virtual-dtor -march=i486 
-mcpu=athlon-xp -fexceptions -fkeep-inline-functions -g -DFOXDLL -DUSE_POSIX 
-DHAVE_CONSTTEMPORARIES -D_DEBUG -DHAVE_XSHM_H -DHAVE_XCURSOR_H=1 -DHAVE_XFT_H=1 
-DXTHREADS=1 -DFOX_THREAD_SAFE=1 -DHAVE_LIBDL=1 -DHAVE_CUPS_H=1 -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 
-DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 
-DBUILDING_TCOMMON -DFOXDLL_EXPORTS -DHAVE_JPEG_H -DHAVE_PNG_H -DHAVE_TIFF_H 
-DHAVE_ZLIB_H -DHAVE_OPENSSL -DHAVE_GL_H -DSUN_OGL_NO_VERTEX_MACROS 
-DHPOGL_SUPPRESS_FAST_API -DHAVE_GLU_H -ITnFOX/include -I/usr/kerberos/include 
-I/usr/X11R6/include -I/usr/include/freetype2 -Iinclude -c -o 
objs/Debug/THelpString.os src/THelpString.cxx
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
TnFOX/include/FXGenericTools.h: In constructor `FX::Generic::Bind::Impl<pars, 
fn>::Impl(P1) [with P1 = FX::FXString*, int pars = 1, fn = void (*)(FX::
FXString*)]':
TnFOX/include/FXGenericTools.h:1582:   instantiated from `FX::Generic::
BoundFunctor<typename FX::Generic::FnInfo<fn>::asList>* FX::Generic::
BindFuncN(fn, P1) [with fn = void (*)(FX::FXString*), P1 = FX::FXString*]'
src/THelpString.cxx:85:   instantiated from here
TnFOX/include/FXGenericTools.h:1542: error: ambiguous class template 
instantiation for `struct FX::Generic::TL::InstantiateHelperH::findType<FX::
Generic::TL::instantiateH<FX::Generic::TL::item<FX::FXString*, FX::Generic::
NullType>, FX::Generic::TL::instanceHolderH>, 0>'
TnFOX/include/FXGenericTools.h:698: error: candidates are: struct FX::Generic::
TL::InstantiateHelperH::findType<FX::Generic::TL::instantiateH<typelist, 
instance>, i>
TnFOX/include/FXGenericTools.h:693: error:                 struct FX::Generic::
TL::InstantiateHelperH::findType<FX::Generic::TL::instantiateH<typelist, 
instance>, 0>
TnFOX/include/FXGenericTools.h:1542: error: no matching function for call to 
`instance(FX::Generic::TL::instantiateH<FX::Generic::TL::item<FX::FXString*, FX:
:Generic::NullType>, FX::Generic::TL::instanceHolderH>&)'
scons: *** [objs/Debug/THelpString.os] Error 1

Cheers,
Niall

-- 
           Summary: v3.4 regression: Failure to select obvious template
                    specialisation
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: s_gccbugzilla at nedprod dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14284



More information about the Gcc-bugs mailing list