This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13957] New: GCC 3.4 rejects some template heavy code that 3.3.1 accepts
- From: "v dot haisman at sh dot cvut dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Feb 2004 10:36:18 -0000
- Subject: [Bug c++/13957] New: GCC 3.4 rejects some template heavy code that 3.3.1 accepts
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I get this error for attached source. The line that the error message mentions
seems to be correct to my best knowledge. GCC 3.3.1 accepts the code. This code
is one of exemples of functional programming library for C++.
http://www.cc.gatech.edu/~yannis/fc++/download.html
wilx@logout:::~/tmp/fc++/FC++-clients.1.5> g++ -save-temps -I ../FC++.1.5 -o
isort isort.cc
../FC++.1.5/list.h: In member function `fcpp::impl::OddList<T>
fcpp::impl::ConsHelp<T, F, fcpp::impl::List<T> >::operator()(const T&, const F&)
const [with T = int, F = fcpp::Full0<fcpp::impl::binder1and2of2<Insert, int,
fcpp::impl::List<int> > >]':
../FC++.1.5/list.h:592: instantiated from `fcpp::impl::OddList<T>
fcpp::impl::XCons::operator()(const T&, const F&) const [with T = int, F =
fcpp::Full0<fcpp::impl::binder1and2of2<Insert, int, fcpp::impl::List<int> > >]'
../FC++.1.5/curry.h:188: instantiated from `static R
fcpp::impl::Curryable2Helper<R, F, X, Y>::go(const F&, const X&, const Y&) [with
R = fcpp::impl::OddList<int>, F = fcpp::impl::XCons, X = int, Y =
fcpp::Full0<fcpp::impl::binder1and2of2<Insert, int, fcpp::impl::List<int> > >]'
../FC++.1.5/full.h:115: instantiated from `typename fcpp::Full2<F>::Sig<X,
Y>::ResultType fcpp::Full2<F>::operator()(const X&, const Y&) const [with X =
int, Y = fcpp::Full0<fcpp::impl::binder1and2of2<Insert, int,
fcpp::impl::List<int> > >, F = fcpp::impl::XCons]'
isort.cc:15: instantiated from here
../FC++.1.5/list.h:564: error: `fcpp::impl::Cache<T>::CvtFxn' names a type, but
a non-type is expected
--
Summary: GCC 3.4 rejects some template heavy code that 3.3.1
accepts
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: v dot haisman at sh dot cvut dot cz
CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
cvut dot cz
GCC build triplet: i386-unknown-freebsd4.9
GCC host triplet: i386-unknown-freebsd4.9
GCC target triplet: i386-unknown-freebsd4.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13957