OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload31.C] - Rev 816

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// PRMS Id: 6568
// Bug: g++ complains about the ambiguous conversion to bool even though
// we wouldn't end up using it anyway.

class AString
{
public:
    AString (unsigned len);
    operator char *() const;
    operator char const *() const;
};

void
foo(unsigned t, AString const & handle)
{
}

void
foo(AString const & handle, bool includeSpecials)
{
    unsigned t;
    foo(t, handle);
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.