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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
error2.C
blob
43d24f13b732a5817fef8e92985b46968c832cec
1
/* PR c++/29727 */
2
/* { dg-do compile } */
3
4
template<int> struct A
5
{
6
static int a[1];
7
};
8
template<int N> int A<N>::a[1] = { X:0 }; /* { dg-error "does not allow designated|was not declared|designated initializer for an array" } */
9
10
void foo()
11
{
12
A<0>::a;
13
}
14
15