OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload31.C] - Blame information for rev 305

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// PRMS Id: 6568
3
// Bug: g++ complains about the ambiguous conversion to bool even though
4
// we wouldn't end up using it anyway.
5
 
6
class AString
7
{
8
public:
9
    AString (unsigned len);
10
    operator char *() const;
11
    operator char const *() const;
12
};
13
 
14
void
15
foo(unsigned t, AString const & handle)
16
{
17
}
18
 
19
void
20
foo(AString const & handle, bool includeSpecials)
21
{
22
    unsigned t;
23
    foo(t, handle);
24
}

powered by: WebSVN 2.1.0

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