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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-options "-w" }
2
// PR c++/9420
3
// Bug: We were instantiating B during overload resolution for E<0.
4
// This is wrong; the contents of B are not relevant, since we can't
5
// use its constructors (because we'd already be using a constructor for
6
// C).
7
 
8
enum { E };
9
 
10
template  struct A {
11
  static const int a = (E < 0);
12
};
13
 
14
template  class B {
15
  A b;
16
};
17
 
18
struct C {
19
  C(B);
20
};
21
 
22
int operator<(C, C);
23
 
24
A c;

powered by: WebSVN 2.1.0

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