repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85262 - ICE with redundant qualification on constructor.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
bitfield2.C
blob
f84cc673e57475e66fcafe77040c47c251f0512b
1
//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 <typename T>
12
struct C
13
{
14
T t : 3;
15
};
16
17
C<int> c;
18
19
template <typename T>
20
struct D
21
{
22
T t : 3; // { dg-error "non-integral type" }
23
};
24
25
D<double> d; // { dg-message "required" }
26
27
template <typename T>
28
struct E
29
{
30
typedef T* U;
31
U t : 3; // { dg-error "non-integral type" }
32
};
33
34
E<double> e;