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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr70621.C
blob
63eb92805f6e1b776ec87b6e67c4c4c14dc40cda
1
float foo();
2
3
struct A
4
{
5
static float x; // { dg-message "previous declaration" }
6
};
7
8
double A::x = foo(); // { dg-error "conflicting declaration" }
9
10
void bar()
11
{
12
A::x = 0;
13
}