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/] [unify4.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 28 Jan 2003 
5
 
6
// PR 9437. We'd unify 'T *' with 'U C::*', which is obviously broken
7
 
8
struct X
9
{
10
  template 
11
  operator T* () const { return static_cast (0); }
12
} null;
13
 
14
struct A { int i; };
15
 
16
static void f (int A::* pmi) { }
17
 
18
int main () { f (null); } // { dg-error "cannot convert" "" }

powered by: WebSVN 2.1.0

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