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

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

Line No. Rev Author Line
1 149 jeremybenn
// Origin: Wolfgang Bangerth 
2
 
3
// PR c++/28705
4
// DR 218 is debating whether this is well formed or not.  We've never
5
// accepted it (because we'd crash), so we continue to reject it, but
6
// without crashing.
7
 
8
namespace N
9
{
10
  struct A { A (A*); }; // { dg-error "lookup finds" "" }
11
}
12
 
13
template void g (N::A *p)
14
{
15
  (void) A (p); // { dg-error "in call" "" }
16
}

powered by: WebSVN 2.1.0

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