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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [sizeof13.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/42623
2
// We should choose f(B) because f(A) involves applying sizeof to
3
// an incomplete class, so it is removed by SFINAE.
4
// { dg-do link }
5
 
6
struct undef;
7
 
8
template  struct A { A(int); };
9
template  void f(A);
10
 
11
template  struct B { B(int) { } };
12
template  void f(B) { }
13
 
14
int main()
15
{
16
  f(0);
17
}

powered by: WebSVN 2.1.0

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