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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [crash-3.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
// { dg-do compile }
2
// { dg-options "-g" }
3
// Contributed by: 
4
//   and Niall Douglas 
5
// PR c++/14246: ice in write_template_arg_literal while mangling boolean
6
//   expressions.
7
 
8
namespace N1 {
9
 
10
  template 
11
  struct A {
12
      enum { Yes = (sizeof(T) == 1) };
13
  };
14
 
15
  template
16
  struct B {
17
      void foo(void);
18
  };
19
 
20
  template struct B< !A::Yes >;
21
 
22
}
23
 
24
 
25
namespace N2 {
26
 
27
  template struct A {};
28
  A a;
29
 
30
}
31
 

powered by: WebSVN 2.1.0

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