[Bug c++/14085] New: Internal error when compiling template functors

dds at aueb dot gr gcc-bugzilla@gcc.gnu.org
Mon Feb 9 14:28:00 GMT 2004


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



More information about the Gcc-bugs mailing list