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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [conv5.C] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do compile }
// { dg-do compile }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 26 Dec 2002 
// Contributed by Nathan Sidwell 26 Dec 2002 
// PR 764. Failed to find friend in overload resolution
// PR 764. Failed to find friend in overload resolution
template 
template 
struct S
struct S
{
{
  friend bool operator== (const S&, const S&) {
  friend bool operator== (const S&, const S&) {
    return true;
    return true;
  }
  }
};
};
int main ()
int main ()
{
{
   // S s;
   // S s;
  const S *p = 0;
  const S *p = 0;
  *p == *p; // error
  *p == *p; // error
}
}
 
 

powered by: WebSVN 2.1.0

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