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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [operator5.C] - Blame information for rev 742

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/50858
2
 
3
class String {
4
   typedef struct ImplicitConversionFromWTFStringToBoolDisallowedA*
5
   (String::*UnspecifiedBoolTypeA);
6
   typedef struct ImplicitConversionFromWTFStringToBoolDisallowedB*
7
   (String::*UnspecifiedBoolTypeB);
8
   operator UnspecifiedBoolTypeA() const;
9
   operator UnspecifiedBoolTypeB() const;
10
};
11
inline bool equalIgnoringCase(const String& a, const String& b) { }
12
inline bool equalPossiblyIgnoringCase(const String& a,
13
                                      const String& b,
14
                                      bool ignoreCase) {
15
  return ignoreCase ? equalIgnoringCase(a, b) : (a == b); } // { dg-error "ambiguous" }
16
// { dg-message "note" { target *-*-* } 15 }

powered by: WebSVN 2.1.0

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