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++/14085] New: Internal error when compiling template functors


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


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