OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/47277
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
pr44086.C
1
// PR c++/44086
2
// { dg-do compile }
3
4
struct A
5
{
6
int const i : 2; // { dg-message "should be initialized" }
7
};
8
9
void f()
10
{
11
A a; // { dg-error "uninitialized const" }
12
new A; // { dg-error "uninitialized const" }
13
A();
14
new A();
15
}