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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [bitfield2.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
//PR c++/28053
2
 
3
struct X {};
4
 
5
struct A
6
{
7
    X x : 2;            // { dg-error "non-integral type" }
8
};
9
struct B : A {};
10
 
11
template 
12
struct C
13
{
14
  T t : 3;
15
};
16
 
17
C c;
18
 
19
template 
20
struct D
21
{
22
  T t : 3;              // { dg-error "non-integral type" }
23
};
24
 
25
D d;            // { dg-error "instantiated" }
26
 
27
template 
28
struct E
29
{
30
  typedef T* U;
31
  U t : 3;             // { dg-error "non-integral type" }
32
};
33
 
34
E e;

powered by: WebSVN 2.1.0

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