This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14085] New: Internal error when compiling template functors
- From: "dds at aueb dot gr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2004 14:28:31 -0000
- Subject: [Bug c++/14085] New: Internal error when compiling template functors
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following message appears:
GNU CPP version 3.2 (mingw special 20020817-1) (cpplib) (80386, BSD syntax)
GNU C++ version 3.2 (mingw special 20020817-1) (mingw32)
compiled by GNU C version 3.2.
t.cpp:6: `Op::first_argument_type' is not a type, use `typename
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
when compiling the code:
#include <functional>
using namespace std;
template <class Op>
bool asfun(Op f, Op::first_argument_type a, Op::second_argument_type b)
{
return Op(a, b);
}
int
main(int argc, char *argv[])
{
return asfun(equal_to, 5, 5);
}
--
Summary: Internal error when compiling template functors
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dds at aueb dot gr
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: minfw
GCC host triplet: mingw
GCC target triplet: mingw
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14085